Class JndiBeanRepository

  • All Implemented Interfaces:
    org.apache.camel.spi.BeanRepository

    public class JndiBeanRepository
    extends Object
    implements org.apache.camel.spi.BeanRepository
    A BeanRepository implementation which looks up the objects in JNDI
    • Constructor Detail

      • JndiBeanRepository

        public JndiBeanRepository()
      • JndiBeanRepository

        public JndiBeanRepository​(Map environment)
      • JndiBeanRepository

        public JndiBeanRepository​(Context context)
      • JndiBeanRepository

        public JndiBeanRepository​(boolean standalone)
        Whether to use standalone mode, where the JNDI initial context factory is using CamelInitialContextFactory.
    • 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
      • findByTypeWithName

        public <T> Map<String,​T> findByTypeWithName​(Class<T> type)
        Specified by:
        findByTypeWithName 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
      • setContext

        public void setContext​(Context context)