public interface FactoryFinder
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
findClass(String key)
Finds the given factory class using the key to lookup.
|
Class<?> |
findClass(String key,
String propertyPrefix)
Finds the given factory class using the key to lookup.
|
Class<?> |
findClass(String key,
String propertyPrefix,
Class<?> clazz)
Finds the given factory class using the key to lookup.
|
String |
getResourcePath()
Gets the resource classpath.
|
Object |
newInstance(String key)
Creates a new class instance using the key to lookup
|
<T> List<T> |
newInstances(String key,
Injector injector,
Class<T> type)
Creates a new class instance using the key to lookup
|
String getResourcePath()
Object newInstance(String key) throws NoFactoryAvailableException
key - is the key to add to the path to find a text file containing the factory nameNoFactoryAvailableException - is thrown if no factories exist for the given key<T> List<T> newInstances(String key, Injector injector, Class<T> type) throws ClassNotFoundException, IOException
key - is the key to add to the path to find a text file containing the factory nameinjector - injector to usetype - expected typeClassNotFoundException - is thrown if not foundIOException - is thrown if loading the class or META-INF file not foundClass<?> findClass(String key) throws ClassNotFoundException, IOException
key - is the key to add to the path to find a text file containing the factory nameClassNotFoundException - is thrown if class not foundIOException - is thrown if loading the class or META-INF file not foundClass<?> findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException
key - is the key to add to the path to find a text file containing the factory namepropertyPrefix - prefix on keyClassNotFoundException - is thrown if not foundIOException - is thrown if loading the class or META-INF file not foundClass<?> findClass(String key, String propertyPrefix, Class<?> clazz) throws ClassNotFoundException, IOException
key - is the key to add to the path to find a text file containing the factory namepropertyPrefix - prefix on keyclazz - the class which is used for checking compatibleClassNotFoundException - is thrown if not foundIOException - is thrown if loading the class or META-INF file not foundApache Camel