com.caucho.naming
Class InitialContextFactoryImpl

java.lang.Object
  extended by com.caucho.naming.InitialContextFactoryImpl
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class InitialContextFactoryImpl
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

Returns the JNDI context for the current classloader. Since each thread will normally have its own current class loader, the actual JNDI context is stored in the contextClassLoader.


Constructor Summary
InitialContextFactoryImpl()
          Constructor with an initial root.
 
Method Summary
static javax.naming.Context createInitialContext()
           
static AbstractModel createRoot()
           
static AbstractModel getContextModel()
          Sets the model for the current class loader.
 javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
          Returns the initial context for the current thread.
static void setContextModel(AbstractModel model)
          Sets the model for the current class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialContextFactoryImpl

public InitialContextFactoryImpl()
Constructor with an initial root.

Method Detail

getContextModel

public static AbstractModel getContextModel()
Sets the model for the current class loader.


setContextModel

public static void setContextModel(AbstractModel model)
Sets the model for the current class loader.


createRoot

public static AbstractModel createRoot()

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
                                       throws javax.naming.NamingException
Returns the initial context for the current thread.

Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Throws:
javax.naming.NamingException

createInitialContext

public static javax.naming.Context createInitialContext()