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.FactoryFinder
public Object newInstance(String key) throws org.apache.camel.NoFactoryAvailableException
newInstance
in interface org.apache.camel.spi.FactoryFinder
org.apache.camel.NoFactoryAvailableException
public <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.FactoryFinder
ClassNotFoundException
IOException
public Class<?> findClass(String key) throws ClassNotFoundException, IOException
findClass
in interface org.apache.camel.spi.FactoryFinder
ClassNotFoundException
IOException
public Class<?> findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException
findClass
in interface org.apache.camel.spi.FactoryFinder
ClassNotFoundException
IOException
public Class<?> findClass(String key, String propertyPrefix, Class<?> clazz) throws ClassNotFoundException, IOException
findClass
in interface org.apache.camel.spi.FactoryFinder
ClassNotFoundException
IOException
protected Class<?> addToClassMap(String key, DefaultFactoryFinder.ClassSupplier mappingFunction) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
Apache Camel