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 protected
StandaloneObjectFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
create(String path)
static Class
loadClass(Properties properties)
static Properties
loadProperties(String uri)
-
-
-
Method Detail
-
create
public Object create(String path) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException
- Specified by:
create
in interfaceFactoryFinder.ObjectFactory
- Parameters:
path
- the full service path- Returns:
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
IOException
-
loadClass
public static Class loadClass(Properties properties) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundException
IOException
-
loadProperties
public static Properties loadProperties(String uri) throws IOException
- Throws:
IOException
-
-