public class ApplicationContextRegistry extends Object implements org.apache.camel.spi.Registry
Registry
implementation which looks up the objects in the Spring
ApplicationContext
Constructor and Description |
---|
ApplicationContextRegistry(ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
<T> Set<T> |
findByType(Class<T> type) |
<T> Map<String,T> |
findByTypeWithName(Class<T> type) |
Object |
lookupByName(String name) |
<T> T |
lookupByNameAndType(String name,
Class<T> type) |
public ApplicationContextRegistry(ApplicationContext applicationContext)
public <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType
in interface org.apache.camel.spi.Registry
public Object lookupByName(String name)
lookupByName
in interface org.apache.camel.spi.Registry
public <T> Set<T> findByType(Class<T> type)
findByType
in interface org.apache.camel.spi.Registry
public <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName
in interface org.apache.camel.spi.Registry
Apache Camel