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 CamelInitialContextFactory()
public Context getInitialContext(Hashtable<?,?> environment) throws NamingException
getInitialContext
in interface InitialContextFactory
environment
- the environment, must not be nullNamingException
- is thrown if creation failed.Apache Camel