Package org.apache.activemq.util
Class FactoryFinder.StandaloneObjectFactory
- java.lang.Object
-
- org.apache.activemq.util.FactoryFinder.StandaloneObjectFactory
-
- All Implemented Interfaces:
FactoryFinder.ObjectFactory
- Enclosing class:
- FactoryFinder
protected static class FactoryFinder.StandaloneObjectFactory extends Object implements FactoryFinder.ObjectFactory
The default implementation of Object factory which works well in standalone applications.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandaloneObjectFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(String path)static ClassloadClass(Properties properties)static PropertiesloadProperties(String uri)
-
-
-
Method Detail
-
create
public Object create(String path) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException
- Specified by:
createin interfaceFactoryFinder.ObjectFactory- Parameters:
path- the full service path- Returns:
- Throws:
InstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionIOException
-
loadClass
public static Class loadClass(Properties properties) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
loadProperties
public static Properties loadProperties(String uri) throws IOException
- Throws:
IOException
-
-