Class FactoryFinder
java.lang.Object
org.apache.activemq.artemis.utils.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 the setObjectFactory 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:
IllegalAccessException- On illegal accessInstantiationException- On can not instantiate exceptionIOException- On IOExceptionClassNotFoundException- When class not on class path
-