public interface Registry
Modifier and Type | Method and Description |
---|---|
<T> Set<T> |
findByType(Class<T> type)
Finds services in the registry by their type.
|
<T> Map<String,T> |
findByTypeWithName(Class<T> type)
Finds services in the registry by their type.
|
Object |
lookupByName(String name)
Looks up a service in the registry based purely on name,
returning the service or null if it could not be found.
|
<T> T |
lookupByNameAndType(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found.
|
Object lookupByName(String name)
name
- the name of the service<T> T lookupByNameAndType(String name, Class<T> type)
name
- the name of the servicetype
- the type of the required service<T> Map<String,T> findByTypeWithName(Class<T> type)
type
- the type of the registered services<T> Set<T> findByType(Class<T> type)
type
- the type of the registered servicesApache Camel