org.openmdx.kernel.naming.spi
Class AbstractContext

java.lang.Object
  extended by org.openmdx.kernel.naming.spi.AbstractContext
All Implemented Interfaces:
Context
Direct Known Subclasses:
NameBasedContext, StringBasedContext

public abstract class AbstractContext
extends Object
implements Context

Abstract Context


Field Summary
protected  Hashtable environment
           
protected static NameParser nameParser
          The Context's name parser
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
protected AbstractContext()
          Constructor
 
Method Summary
 Object addToEnvironment(String propName, Object propVal)
           
 void close()
           
 Hashtable getEnvironment()
           
 Object removeFromEnvironment(String propName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.naming.Context
bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, rename, rename, unbind, unbind
 

Field Detail

nameParser

protected static final NameParser nameParser
The Context's name parser


environment

protected Hashtable environment
Constructor Detail

AbstractContext

protected AbstractContext()
Constructor

Method Detail

close

public void close()
           throws NamingException
Specified by:
close in interface Context
Throws:
NamingException

addToEnvironment

public Object addToEnvironment(String propName,
                               Object propVal)
                        throws NamingException
Specified by:
addToEnvironment in interface Context
Throws:
NamingException

getEnvironment

public Hashtable getEnvironment()
                         throws NamingException
Specified by:
getEnvironment in interface Context
Throws:
NamingException

removeFromEnvironment

public Object removeFromEnvironment(String propName)
                             throws NamingException
Specified by:
removeFromEnvironment in interface Context
Throws:
NamingException

toString

public String toString()
Overrides:
toString in class Object


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