|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.util.FactoryFinder
public class FactoryFinder
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
FactoryFinder(java.lang.String path)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FactoryFinder(java.lang.String path)
Method Detail |
---|
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 name
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |