public class PropertyPlaceholderDelegateRegistry extends Object implements Registry
Registry
which delegates to the real registry.
This is used to ensure that Camel performs property placeholder resolution on every lookup.Constructor and Description |
---|
PropertyPlaceholderDelegateRegistry(CamelContext context,
Registry delegate) |
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.
|
Registry |
getRegistry() |
Object |
lookup(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 |
lookup(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)
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)
Looks up services in the registry by their type.
|
String |
toString() |
public PropertyPlaceholderDelegateRegistry(CamelContext context, Registry delegate)
public Object lookupByName(String name)
Registry
lookupByName
in interface Registry
name
- the name of the servicepublic <T> T lookupByNameAndType(String name, Class<T> type)
Registry
lookupByNameAndType
in interface Registry
name
- the name of the servicetype
- the type of the required servicepublic <T> Map<String,T> findByTypeWithName(Class<T> type)
Registry
findByTypeWithName
in interface Registry
type
- the type of the registered servicespublic <T> Set<T> findByType(Class<T> type)
Registry
findByType
in interface Registry
type
- the type of the registered servicespublic Object lookup(String name)
Registry
public <T> T lookup(String name, Class<T> type)
Registry
public <T> Map<String,T> lookupByType(Class<T> type)
Registry
JndiRegistry
.lookupByType
in interface Registry
type
- the type of the registered servicespublic Registry getRegistry()
Apache Camel