org.apache.camel.spring.spi
Class ApplicationContextRegistry

java.lang.Object
  extended by org.apache.camel.spring.spi.ApplicationContextRegistry
All Implemented Interfaces:
org.apache.camel.spi.Registry

public class ApplicationContextRegistry
extends Object
implements org.apache.camel.spi.Registry

A Registry implementation which looks up the objects in the Spring ApplicationContext

Version:

Constructor Summary
ApplicationContextRegistry(org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
 Object lookup(String name)
           
<T> T
lookup(String name, Class<T> type)
           
<T> Map<String,T>
lookupByType(Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContextRegistry

public ApplicationContextRegistry(org.springframework.context.ApplicationContext applicationContext)
Method Detail

lookup

public <T> T lookup(String name,
                    Class<T> type)
Specified by:
lookup in interface org.apache.camel.spi.Registry

lookup

public Object lookup(String name)
Specified by:
lookup in interface org.apache.camel.spi.Registry

lookupByType

public <T> Map<String,T> lookupByType(Class<T> type)
Specified by:
lookupByType in interface org.apache.camel.spi.Registry


Apache CAMEL