org.apache.activemq.util
Class FactoryFinder
java.lang.Object
org.apache.activemq.util.FactoryFinder
public class FactoryFinder
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FactoryFinder
public FactoryFinder(java.lang.String path)
getObjectFactory
public static FactoryFinder.ObjectFactory getObjectFactory()
setObjectFactory
public static void setObjectFactory(FactoryFinder.ObjectFactory objectFactory)
newInstance
public java.lang.Object newInstance(java.lang.String key)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.io.IOException,
java.lang.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:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2005-2015 Red Hat, Inc.. All Rights Reserved.