Class 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 Detail

      • ApplicationContextBeanRepository

        public ApplicationContextBeanRepository​(org.springframework.context.ApplicationContext applicationContext)
    • Method Detail

      • lookupByNameAndType

        public <T> T lookupByNameAndType​(String name,
                                         Class<T> type)
        Specified by:
        lookupByNameAndType in interface org.apache.camel.spi.BeanRepository
      • lookupByName

        public Object lookupByName​(String name)
        Specified by:
        lookupByName in interface org.apache.camel.spi.BeanRepository
      • findByType

        public <T> Set<T> findByType​(Class<T> type)
        Specified by:
        findByType in interface org.apache.camel.spi.BeanRepository
      • findByTypeWithName

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