public class ApplicationContextBeanRepository extends Object implements org.apache.camel.spi.BeanRepository
BeanRepository implementation which looks up the objects in the Spring
ApplicationContext| Constructor and Description |
|---|
ApplicationContextBeanRepository(org.springframework.context.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 ApplicationContextBeanRepository(org.springframework.context.ApplicationContext applicationContext)
public <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType in interface org.apache.camel.spi.BeanRepositorypublic Object lookupByName(String name)
lookupByName in interface org.apache.camel.spi.BeanRepositorypublic <T> Set<T> findByType(Class<T> type)
findByType in interface org.apache.camel.spi.BeanRepositorypublic <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName in interface org.apache.camel.spi.BeanRepositoryApache Camel