public interface BeanRepository
Modifier and Type | Method and Description |
---|---|
<T> Set<T> |
findByType(Class<T> type)
Finds beans in the registry by their type.
|
<T> Map<String,T> |
findByTypeWithName(Class<T> type)
Finds beans in the registry by their type.
|
Object |
lookupByName(String name)
Looks up a bean in the registry based purely on name, returning the bean or null if it could not be
found.
|
<T> T |
lookupByNameAndType(String name,
Class<T> type)
Looks up a bean in the registry, returning the bean or null if it could not be found.
|
default Object |
unwrap(Object value)
Strategy to wrap the value to be stored in the registry.
|
Object lookupByName(String name)
lookupByNameAndType(String, Class)
to lookup the bean with a specific type, or to use any of the
find methods.name
- the name of the bean<T> T lookupByNameAndType(String name, Class<T> type)
name
- the name of the beantype
- the type of the required bean<T> Map<String,T> findByTypeWithName(Class<T> type)
type
- the type of the beans<T> Set<T> findByType(Class<T> type)
type
- the type of the beansApache Camel