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 |
lookup(String name)
Deprecated.
|
<T> T |
lookup(String name,
Class<T> type)
Deprecated.
|
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.
|
<T> Map<String,T> |
lookupByType(Class<T> type)
Deprecated.
|
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 services@Deprecated Object lookup(String name)
lookupByName(String)
name
- the name of the service@Deprecated <T> T lookup(String name, Class<T> type)
lookupByNameAndType(String, Class)
name
- the name of the servicetype
- the type of the required service@Deprecated <T> Map<String,T> lookupByType(Class<T> type)
findByTypeWithName(Class)
JndiRegistry
.type
- the type of the registered servicesApache Camel