Package org.apache.camel.support.jndi
Class CamelInitialContextFactory
java.lang.Object
org.apache.camel.support.jndi.CamelInitialContextFactory
- All Implemented Interfaces:
InitialContextFactory
- Direct Known Subclasses:
CamelSingletonInitialContextFactory
A factory of the Camel
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInitialContext(Hashtable<?, ?> environment) Creates a new context with the given environment.
-
Constructor Details
-
CamelInitialContextFactory
public CamelInitialContextFactory()
-
-
Method Details
-
getInitialContext
Creates a new context with the given environment.- Specified by:
getInitialContextin interfaceInitialContextFactory- Parameters:
environment- the environment, must not be null- Returns:
- the created context.
- Throws:
NamingException- is thrown if creation failed.
-