org.apache.avalon.excalibur.naming.memory
Class MemoryContext

java.lang.Object
  |
  +--org.apache.avalon.excalibur.naming.AbstractContext
        |
        +--org.apache.avalon.excalibur.naming.AbstractLocalContext
              |
              +--org.apache.avalon.excalibur.naming.memory.MemoryContext
All Implemented Interfaces:
Context

Deprecated. Toolkit deprecated and replaced by http://spice.sourceforge.net/jndikit/

public class MemoryContext
extends AbstractLocalContext

An in memory context implementation.

Version:
$Revision: 1.1 $
Author:
Peter Donald

Field Summary
 
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
  MemoryContext(Namespace namespace, Hashtable environment, Context parent)
          Deprecated.  
protected MemoryContext(Namespace namespace, Hashtable environment, Context parent, Hashtable bindings)
          Deprecated.  
 
Method Summary
protected  Context cloneContext()
          Deprecated.  
protected  void doLocalBind(Name name, Object object)
          Deprecated.  
protected  NamingEnumeration doLocalList()
          Deprecated.  
protected  NamingEnumeration doLocalListBindings()
          Deprecated.  
protected  Object doLocalLookup(Name name)
          Deprecated. Actually lookup raw entry in local context.
protected  void doLocalUnbind(Name name)
          Deprecated. Actually unbind raw entry in local context.
protected  Context newContext()
          Deprecated.  
 
Methods inherited from class org.apache.avalon.excalibur.naming.AbstractLocalContext
bind, checkUnbindContext, close, createSubcontext, destroySubcontext, getNameInNamespace, getNameParser, getNamespace, getParent, isDestroyableContext, list, listBindings, localLookup, lookup, lookupSubContext, unbind
 
Methods inherited from class org.apache.avalon.excalibur.naming.AbstractContext
addToEnvironment, bind, bind, composeName, composeName, createSubcontext, destroySubcontext, getEnvironment, getLeafName, getNameParser, getNameParser, getPathName, getRawEnvironment, isSelf, list, listBindings, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryContext

protected MemoryContext(Namespace namespace,
                        Hashtable environment,
                        Context parent,
                        Hashtable bindings)
Deprecated. 

MemoryContext

public MemoryContext(Namespace namespace,
                     Hashtable environment,
                     Context parent)
Deprecated. 
Method Detail

newContext

protected Context newContext()
                      throws NamingException
Deprecated. 
Specified by:
newContext in class AbstractLocalContext
NamingException

cloneContext

protected Context cloneContext()
                        throws NamingException
Deprecated. 
Specified by:
cloneContext in class AbstractLocalContext
NamingException

doLocalBind

protected void doLocalBind(Name name,
                           Object object)
                    throws NamingException
Deprecated. 
Specified by:
doLocalBind in class AbstractLocalContext
NamingException

doLocalList

protected NamingEnumeration doLocalList()
                                 throws NamingException
Deprecated. 
Specified by:
doLocalList in class AbstractLocalContext
NamingException

doLocalListBindings

protected NamingEnumeration doLocalListBindings()
                                         throws NamingException
Deprecated. 
Specified by:
doLocalListBindings in class AbstractLocalContext
NamingException

doLocalLookup

protected Object doLocalLookup(Name name)
                        throws NamingException
Deprecated. 
Actually lookup raw entry in local context. When overidding this it is not neccesary to resolve references etc.

Specified by:
doLocalLookup in class AbstractLocalContext
Parameters:
name - the name in local context (size() == 1)
Returns:
the bound object
Throws:
NamingException - if an error occurs

doLocalUnbind

protected void doLocalUnbind(Name name)
                      throws NamingException
Deprecated. 
Actually unbind raw entry in local context.

Specified by:
doLocalUnbind in class AbstractLocalContext
Parameters:
name - the name in local context (size() == 1)
Throws:
NamingException - if an error occurs


Copyright © 2000-2003 Apache Jakarta Project. All Rights Reserved.