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
A
BeanRepository
implementation which looks up the objects in the Spring ApplicationContext
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationContextBeanRepository
(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescription<T> Set<T>
findByType
(Class<T> type) findByTypeWithName
(Class<T> type) lookupByName
(String name) <T> T
lookupByNameAndType
(String name, Class<T> type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.spi.BeanRepository
findSingleByType, unwrap
-
Constructor Details
-
ApplicationContextBeanRepository
public ApplicationContextBeanRepository(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
lookupByNameAndType
- Specified by:
lookupByNameAndType
in interfaceorg.apache.camel.spi.BeanRepository
-
lookupByName
- Specified by:
lookupByName
in interfaceorg.apache.camel.spi.BeanRepository
-
findByType
- Specified by:
findByType
in interfaceorg.apache.camel.spi.BeanRepository
-
findByTypeWithName
- Specified by:
findByTypeWithName
in interfaceorg.apache.camel.spi.BeanRepository
-