public class JndiBeanRepository extends Object implements org.apache.camel.spi.BeanRepository
BeanRepository
implementation which looks up the objects in JNDIConstructor 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.BeanRepository
public Object lookupByName(String name)
lookupByName
in interface org.apache.camel.spi.BeanRepository
public <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName
in interface org.apache.camel.spi.BeanRepository
public <T> Set<T> findByType(Class<T> type)
findByType
in interface org.apache.camel.spi.BeanRepository
public void close() throws NamingException
NamingException
public Context getContext() throws NamingException
NamingException
public void setContext(Context context)
protected Context createContext() throws NamingException
NamingException
Apache Camel