org.apache.camel.spring.spi
Class ApplicationContextRegistry
java.lang.Object
org.apache.camel.spring.spi.ApplicationContextRegistry
- All Implemented Interfaces:
- Registry
public class ApplicationContextRegistry
- extends Object
- implements Registry
A Registry
implementation which looks up the objects in the Spring
ApplicationContext
- Version:
- $Revision: 763484 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationContextRegistry
public ApplicationContextRegistry(ApplicationContext applicationContext)
lookup
public <T> T lookup(String name,
Class<T> type)
- Specified by:
lookup
in interface Registry
lookup
public Object lookup(String name)
- Specified by:
lookup
in interface Registry
lookupByType
public <T> Map<String,T> lookupByType(Class<T> type)
- Specified by:
lookupByType
in interface Registry
Apache CAMEL