public class CamelInitialContextFactory extends Object implements InitialContextFactory
InitialContext which allows a Map to be used to create a
JNDI context.
This implementation is prototype based, by creating a new context on each call to
getInitialContext(java.util.Hashtable).| Constructor and Description |
|---|
CamelInitialContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
Context |
getInitialContext(Hashtable<?,?> environment)
Creates a new context with the given environment.
|
public Context getInitialContext(Hashtable<?,?> environment) throws NamingException
getInitialContext in interface InitialContextFactoryenvironment - the environment, must not be nullNamingException - is thrown if creation failed.Apache Camel