org.apache.activemq.util
public class FactoryFinder extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FactoryFinder.ObjectFactory
The strategy that the FactoryFinder uses to find load and instantiate Objects
can be changed out by calling the
setObjectFactory(org.apache.activemq.util.FactoryFinder.ObjectFactory)
method with a custom implementation of ObjectFactory. |
protected static class |
FactoryFinder.StandaloneObjectFactory
The default implementation of Object factory which works well in standalone applications.
|
Constructor and Description |
---|
FactoryFinder(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
static FactoryFinder.ObjectFactory |
getObjectFactory() |
java.lang.Object |
newInstance(java.lang.String key)
Creates a new instance of the given key
|
static void |
setObjectFactory(FactoryFinder.ObjectFactory objectFactory) |
public FactoryFinder(java.lang.String path)
public static FactoryFinder.ObjectFactory getObjectFactory()
public static void setObjectFactory(FactoryFinder.ObjectFactory objectFactory)
public java.lang.Object newInstance(java.lang.String key) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.io.IOException, java.lang.ClassNotFoundException
key
- is the key to add to the path to find a text file containing
the factory namejava.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2005-2014. All Rights Reserved.