org.apache.camel.util
Class FactoryFinder
java.lang.Object
org.apache.camel.util.FactoryFinder
public class FactoryFinder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FactoryFinder
public FactoryFinder()
FactoryFinder
public FactoryFinder(String path)
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
InstantiationException
IOException
ClassNotFoundException
newInstance
public Object newInstance(String key,
String propertyPrefix)
throws IllegalAccessException,
InstantiationException,
IOException,
ClassNotFoundException
- Throws:
IllegalAccessException
InstantiationException
IOException
ClassNotFoundException
newInstance
public Object newInstance(String key,
Injector injector)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
newInstance
public Object newInstance(String key,
Injector injector,
String propertyPrefix)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
findClass
public Class findClass(String key)
throws ClassNotFoundException,
IOException
- Throws:
ClassNotFoundException
IOException
findClass
public Class findClass(String key,
String propertyPrefix)
throws ClassNotFoundException,
IOException
- Throws:
ClassNotFoundException
IOException
Copyright © 2007 Apache Software Foundation. All Rights Reserved.