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

public class MemoryContext
extends AbstractLocalContext

An in memory context implementation.

Version:
$Revision: 1.5 $
Author:
Peter Donald

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)
           
protected MemoryContext(Namespace namespace, Hashtable environment, Context parent, Hashtable bindings)
           
 
Method Summary
protected  Context cloneContext()
           
protected  void doLocalBind(Name name, Object object)
           
protected  NamingEnumeration doLocalList()
           
protected  NamingEnumeration doLocalListBindings()
           
protected  Object doLocalLookup(Name name)
          Actually lookup raw entry in local context.
protected  void doLocalUnbind(Name name)
          Actually unbind raw entry in local context.
protected  Context newContext()
           
 
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)

MemoryContext

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

newContext

protected Context newContext()
                      throws NamingException
Overrides:
newContext in class AbstractLocalContext

cloneContext

protected Context cloneContext()
                        throws NamingException
Overrides:
cloneContext in class AbstractLocalContext

doLocalBind

protected void doLocalBind(Name name,
                           Object object)
                    throws NamingException
Overrides:
doLocalBind in class AbstractLocalContext

doLocalList

protected NamingEnumeration doLocalList()
                                 throws NamingException
Overrides:
doLocalList in class AbstractLocalContext

doLocalListBindings

protected NamingEnumeration doLocalListBindings()
                                         throws NamingException
Overrides:
doLocalListBindings in class AbstractLocalContext

doLocalLookup

protected Object doLocalLookup(Name name)
                        throws NamingException
Actually lookup raw entry in local context. When overidding this it is not neccesary to resolve references etc.
Overrides:
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
Actually unbind raw entry in local context.
Overrides:
doLocalUnbind in class AbstractLocalContext
Parameters:
name - the name in local context (size() == 1)
Throws:
NamingException - if an error occurs


"Copyright © 2000-2002 Apache Jakarta Project. All Rights Reserved."