org.apache.camel.guice.jndi
Class GuiceInitialContextFactory

java.lang.Object
  extended by 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:

Field Summary
static String NAME_PREFIX
           
 
Constructor Summary
GuiceInitialContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable<?,?> environment)
          Creates a new context with the given environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_PREFIX

public static final String NAME_PREFIX
See Also:
Constant Field Values
Constructor Detail

GuiceInitialContextFactory

public GuiceInitialContextFactory()
Method Detail

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