Package org.apache.camel.support.jndi
Class JndiBeanRepository
java.lang.Object
org.apache.camel.support.jndi.JndiBeanRepository
- All Implemented Interfaces:
org.apache.camel.spi.BeanRepository
A
BeanRepository implementation which looks up the objects in JNDI-
Constructor Summary
ConstructorsConstructorDescriptionJndiBeanRepository(boolean standalone) Whether to use standalone mode, where the JNDI initial context factory is usingCamelInitialContextFactory.JndiBeanRepository(Map<?, ?> environment) JndiBeanRepository(Context context) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected Context<T> Set<T>findByType(Class<T> type) findByTypeWithName(Class<T> type) lookupByName(String name) <T> TlookupByNameAndType(String name, Class<T> type) voidsetContext(Context context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.BeanRepository
findSingleByType, unwrap
-
Constructor Details
-
JndiBeanRepository
public JndiBeanRepository() -
JndiBeanRepository
-
JndiBeanRepository
-
JndiBeanRepository
public JndiBeanRepository(boolean standalone) Whether to use standalone mode, where the JNDI initial context factory is usingCamelInitialContextFactory.
-
-
Method Details
-
lookupByNameAndType
- Specified by:
lookupByNameAndTypein interfaceorg.apache.camel.spi.BeanRepository
-
lookupByName
- Specified by:
lookupByNamein interfaceorg.apache.camel.spi.BeanRepository
-
findByTypeWithName
- Specified by:
findByTypeWithNamein interfaceorg.apache.camel.spi.BeanRepository
-
findByType
- Specified by:
findByTypein interfaceorg.apache.camel.spi.BeanRepository
-
close
- Throws:
NamingException
-
getContext
- Throws:
NamingException
-
setContext
-
createContext
- Throws:
NamingException
-