Package org.apache.activemq.util
Class FactoryFinder
java.lang.Object
org.apache.activemq.util.FactoryFinder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe strategy that the FactoryFinder uses to find load and instantiate Objects can be changed out by calling thesetObjectFactory(org.apache.activemq.util.FactoryFinder.ObjectFactory)method with a custom implementation of ObjectFactory.protected static classThe default implementation of Object factory which works well in standalone applications. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FactoryFinder.ObjectFactorynewInstance(String key) Creates a new instance of the given keystatic voidsetObjectFactory(FactoryFinder.ObjectFactory objectFactory)
-
Constructor Details
-
FactoryFinder
-
-
Method Details
-
getObjectFactory
-
setObjectFactory
-
newInstance
public Object newInstance(String key) throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException Creates a new instance of the given key- Parameters:
key- is the key to add to the path to find a text file containing the factory name- Returns:
- a newly created instance
- Throws:
IllegalAccessExceptionInstantiationExceptionIOExceptionClassNotFoundException
-