org.openmdx.kernel.naming
Class LocalContextFactory

java.lang.Object
  extended by org.openmdx.kernel.naming.LocalContextFactory
All Implemented Interfaces:
InitialContextFactory
Direct Known Subclasses:
InitialContainerContextFactory

Deprecated. together with the only subsystem using it, namely the LightweightContainer_1.

public class LocalContextFactory
extends Object
implements InitialContextFactory

Local contexts are registered in the Java VM under their PROVIDER_URL.


Constructor Summary
LocalContextFactory()
          Deprecated.  
 
Method Summary
protected  Context createInitialContext(Hashtable environment)
          Deprecated. Create an initial context for a specific provider URL.
 Context getInitialContext(Hashtable environment)
          Deprecated.  
protected static boolean isWithoutInitialization(Hashtable environment)
          Deprecated. Tests whether the environment contains a provider URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalContextFactory

public LocalContextFactory()
Deprecated. 
Method Detail

isWithoutInitialization

protected static boolean isWithoutInitialization(Hashtable environment)
Deprecated. 
Tests whether the environment contains a provider URL

Parameters:
environment -
Returns:
true if the environment requires a provider

createInitialContext

protected Context createInitialContext(Hashtable environment)
                                throws NamingException
Deprecated. 
Create an initial context for a specific provider URL.

This method handles the cases where the provider URL is null or empty. It must be overridden by a subclass for all other cases.

Parameters:
environment -
Throws:
NoInitialContextException - if the class is not able to create an initial context for the specified provider
NamingException

getInitialContext

public Context getInitialContext(Hashtable environment)
                          throws NamingException
Deprecated. 
Specified by:
getInitialContext in interface InitialContextFactory
Throws:
NamingException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.