public interface FactoryFinder
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATH |
Modifier and Type | Method and Description |
---|---|
Optional<Class<?>> |
findClass(String key)
Finds the given factory class using the key to lookup.
|
Optional<Class<?>> |
findOptionalClass(String key)
Finds the optional factory class using the key to lookup.
|
String |
getResourcePath()
Gets the resource classpath.
|
Optional<Object> |
newInstance(String key)
Creates a new class instance using the key to lookup
|
<T> Optional<T> |
newInstance(String key,
Class<T> type)
Creates a new class instance using the key to lookup
|
static final String DEFAULT_PATH
String getResourcePath()
Optional<Object> newInstance(String key)
key
- is the key to add to the path to find a text file containing the factory name<T> Optional<T> newInstance(String key, Class<T> type)
key
- is the key to add to the path to find a text file containing the factory nametype
- the class typeOptional<Class<?>> findClass(String key)
key
- is the key to add to the path to find a text file containing the factory nameApache Camel