|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FactoryFinder
Finder to find factories from the resource classpath, usually META-INF/services/org/apache/camel/.
Method Summary | ||
---|---|---|
Class |
findClass(String key)
Finds the given factory class using the the key to lookup. |
|
Class |
findClass(String key,
String propertyPrefix)
Finds the given factory class using the the key to lookup. |
|
String |
getResourcePath()
Gets the resource classpath. |
|
Object |
newInstance(String key)
Creates a new class instance using the key to lookup |
|
|
newInstances(String key,
Injector injector,
Class<T> type)
Creates a new class instance using the key to lookup |
Method Detail |
---|
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 name
NoFactoryAvailableException
- 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 type
ClassNotFoundException
- is thrown if not found
IOException
- 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 name
ClassNotFoundException
- is thrown if class not found
IOException
- 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 key
ClassNotFoundException
- is thrown if not found
IOException
- is thrown if loading the class or META-INF file not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |