Package org.apache.camel.spring.spi
Class ApplicationContextBeanRepository
- java.lang.Object
-
- org.apache.camel.spring.spi.ApplicationContextBeanRepository
-
- All Implemented Interfaces:
org.apache.camel.spi.BeanRepository
public class ApplicationContextBeanRepository extends Object implements org.apache.camel.spi.BeanRepository
ABeanRepository
implementation which looks up the objects in the SpringApplicationContext
-
-
Constructor Summary
Constructors Constructor Description ApplicationContextBeanRepository(org.springframework.context.ApplicationContext applicationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
lookupByNameAndType
public <T> T lookupByNameAndType(String name, Class<T> type)
- Specified by:
lookupByNameAndType
in interfaceorg.apache.camel.spi.BeanRepository
-
lookupByName
public Object lookupByName(String name)
- Specified by:
lookupByName
in interfaceorg.apache.camel.spi.BeanRepository
-
findByType
public <T> Set<T> findByType(Class<T> type)
- Specified by:
findByType
in interfaceorg.apache.camel.spi.BeanRepository
-
-