public class DefaultFactoryFinder extends Object implements org.apache.camel.spi.FactoryFinder
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultFactoryFinder.ClassSupplier |
| Constructor and Description |
|---|
DefaultFactoryFinder(org.apache.camel.spi.ClassResolver classResolver,
String resourcePath) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
addToClassMap(String key,
DefaultFactoryFinder.ClassSupplier mappingFunction) |
Class<?> |
findClass(String key) |
Class<?> |
findClass(String key,
String propertyPrefix) |
Class<?> |
findClass(String key,
String propertyPrefix,
Class<?> clazz) |
String |
getResourcePath() |
Object |
newInstance(String key) |
<T> List<T> |
newInstances(String key,
org.apache.camel.spi.Injector injector,
Class<T> type) |
public DefaultFactoryFinder(org.apache.camel.spi.ClassResolver classResolver,
String resourcePath)
public String getResourcePath()
getResourcePath in interface org.apache.camel.spi.FactoryFinderpublic Object newInstance(String key) throws org.apache.camel.NoFactoryAvailableException
newInstance in interface org.apache.camel.spi.FactoryFinderorg.apache.camel.NoFactoryAvailableExceptionpublic <T> List<T> newInstances(String key, org.apache.camel.spi.Injector injector, Class<T> type) throws ClassNotFoundException, IOException
newInstances in interface org.apache.camel.spi.FactoryFinderClassNotFoundExceptionIOExceptionpublic Class<?> findClass(String key) throws ClassNotFoundException, IOException
findClass in interface org.apache.camel.spi.FactoryFinderClassNotFoundExceptionIOExceptionpublic Class<?> findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException
findClass in interface org.apache.camel.spi.FactoryFinderClassNotFoundExceptionIOExceptionpublic Class<?> findClass(String key, String propertyPrefix, Class<?> clazz) throws ClassNotFoundException, IOException
findClass in interface org.apache.camel.spi.FactoryFinderClassNotFoundExceptionIOExceptionprotected Class<?> addToClassMap(String key, DefaultFactoryFinder.ClassSupplier mappingFunction) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionApache Camel