public class JndiBeanRepository extends Object implements org.apache.camel.spi.BeanRepository
BeanRepository implementation which looks up the objects in JNDI| Constructor and Description |
|---|
JndiBeanRepository() |
JndiBeanRepository(boolean standalone)
Whether to use standalone mode, where the JNDI initial context factory is using
CamelInitialContextFactory. |
JndiBeanRepository(Context context) |
JndiBeanRepository(Map environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Context |
createContext() |
<T> Set<T> |
findByType(Class<T> type) |
<T> Map<String,T> |
findByTypeWithName(Class<T> type) |
Context |
getContext() |
Object |
lookupByName(String name) |
<T> T |
lookupByNameAndType(String name,
Class<T> type) |
void |
setContext(Context context) |
public JndiBeanRepository()
public JndiBeanRepository(Map environment)
public JndiBeanRepository(Context context)
public JndiBeanRepository(boolean standalone)
CamelInitialContextFactory.public <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType in interface org.apache.camel.spi.BeanRepositorypublic Object lookupByName(String name)
lookupByName in interface org.apache.camel.spi.BeanRepositorypublic <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName in interface org.apache.camel.spi.BeanRepositorypublic <T> Set<T> findByType(Class<T> type)
findByType in interface org.apache.camel.spi.BeanRepositorypublic void close()
throws NamingException
NamingExceptionpublic Context getContext() throws NamingException
NamingExceptionpublic void setContext(Context context)
protected Context createContext() throws NamingException
NamingExceptionApache Camel