org.apache.camel.guice.jndi
Class GuiceInitialContextFactory
java.lang.Object
org.apache.camel.guice.jndi.GuiceInitialContextFactory
- All Implemented Interfaces:
- InitialContextFactory
public class GuiceInitialContextFactory
- extends Object
- implements InitialContextFactory
A factory of the Guice JNDI provider which creates an injector from all the
available modules specified in the space separated
Injectors.MODULE_CLASS_NAMES
property.
For more details of how this JNDI provider works see the wiki
documentation
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_PREFIX
public static final String NAME_PREFIX
- See Also:
- Constant Field Values
GuiceInitialContextFactory
public GuiceInitialContextFactory()
getInitialContext
public Context getInitialContext(Hashtable<?,?> environment)
throws NamingException
- Creates a new context with the given environment.
- Specified by:
getInitialContext
in interface InitialContextFactory
- Parameters:
environment
- the environment, must not be null
- Returns:
- the created context.
- Throws:
NamingException
- is thrown if creation failed.
Apache Camel