org.apache.activemq.util
Class FactoryFinder
java.lang.Object
org.apache.activemq.util.FactoryFinder
public class FactoryFinder
- extends java.lang.Object
Method Summary |
java.lang.Object |
newInstance(java.lang.String key)
Creates a new instance of the given key |
java.lang.Object |
newInstance(java.lang.String key,
java.lang.String propertyPrefix)
|
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)
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
newInstance
public java.lang.Object newInstance(java.lang.String key,
java.lang.String propertyPrefix)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.