org.apache.naming
Class NamingContextFactory

java.lang.Object
  extended by org.apache.naming.NamingContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

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

Initial context factory returning NamingContext instances.

Version:
$Revision$ $Date$

Constructor Summary
NamingContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable environment)
          Get a new (writable) initial context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamingContextFactory

public NamingContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable environment)
                                       throws javax.naming.NamingException
Get a new (writable) initial context. Always returns a NamingContext. If SynchronizedContext.isSynchronized(java.util.Hashtable) returns true for environment then the returned context is wrapped in a SynchronizedContext, so access to it will be synchronized.

Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Parameters:
environment - environment
Returns:
a new Context
Throws:
javax.naming.NamingException - if a naming exception is encountered