org.apache.camel.impl
Class PropertyPlaceholderDelegateRegistry

java.lang.Object
  extended by org.apache.camel.impl.PropertyPlaceholderDelegateRegistry
All Implemented Interfaces:
Registry

public class PropertyPlaceholderDelegateRegistry
extends Object
implements Registry

A Registry which delegates to the real registry.

This is used to ensure that Camel performs property placeholder resolution on every lookup.

Version:

Constructor Summary
PropertyPlaceholderDelegateRegistry(CamelContext context, Registry delegate)
           
 
Method Summary
 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.
<T> Map<String,T>
lookupByType(Class<T> type)
          Looks up services in the registry by their type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyPlaceholderDelegateRegistry

public PropertyPlaceholderDelegateRegistry(CamelContext context,
                                           Registry delegate)
Method Detail

lookup

public Object lookup(String name)
Description copied from interface: Registry
Looks up a service in the registry based purely on name, returning the service or null if it could not be found.

Specified by:
lookup in interface Registry
Parameters:
name - the name of the service
Returns:
the service from the registry or null if it could not be found

lookup

public <T> T lookup(String name,
                    Class<T> type)
Description copied from interface: Registry
Looks up a service in the registry, returning the service or null if it could not be found. cha

Specified by:
lookup in interface Registry
Parameters:
name - the name of the service
type - the type of the required service
Returns:
the service from the registry or null if it could not be found

lookupByType

public <T> Map<String,T> lookupByType(Class<T> type)
Description copied from interface: Registry
Looks up services in the registry by their type.

Note: Not all registry implementations support this feature, such as the JndiRegistry.

Specified by:
lookupByType in interface Registry
Parameters:
type - the type of the registered services
Returns:
the types found, with their id as the key. Returns an empty Map if none found.

getRegistry

public Registry getRegistry()

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL