org.apache.avalon.excalibur.naming
クラス AbstractLocalContext

java.lang.Object
  |
  +--org.apache.avalon.excalibur.naming.AbstractContext
        |
        +--org.apache.avalon.excalibur.naming.AbstractLocalContext
すべての実装インタフェース:
javax.naming.Context
直系の既知のサブクラス:
MemoryContext

public abstract class AbstractLocalContext
extends AbstractContext

Abstract local JNDI Context that can be inherited from to provide a particular type of Context. These contexts are assumed to be on the same machine.

バージョン:
$Revision: 1.6 $
作成者:
Peter Donald

インタフェース 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
 
コンストラクタの概要
AbstractLocalContext(Namespace namespace, java.util.Hashtable environment, javax.naming.Context parent)
           
 
メソッドの概要
protected  void bind(javax.naming.Name name, java.lang.Object object, boolean rebind)
          Helper method to bind
protected  void checkUnbindContext(javax.naming.Name name, java.lang.Object entry)
           
protected abstract  javax.naming.Context cloneContext()
           
 void close()
          Release resources associated with context.
 javax.naming.Context createSubcontext(javax.naming.Name name)
          Create a Subcontext.
 void destroySubcontext(javax.naming.Name name)
           
protected abstract  void doLocalBind(javax.naming.Name name, java.lang.Object object)
           
protected abstract  javax.naming.NamingEnumeration doLocalList()
           
protected abstract  javax.naming.NamingEnumeration doLocalListBindings()
           
protected abstract  java.lang.Object doLocalLookup(javax.naming.Name name)
          Actually lookup raw entry in local context.
protected abstract  void doLocalUnbind(javax.naming.Name name)
          Actually unbind raw entry in local context.
 java.lang.String getNameInNamespace()
           
protected  javax.naming.NameParser getNameParser()
           
protected  Namespace getNamespace()
          Utility method to retrieve the Namespace.
protected  javax.naming.Context getParent()
          Utility method to retrieve parent Context.
protected  boolean isDestroyableContext(java.lang.Object object)
           
 javax.naming.NamingEnumeration list(javax.naming.Name name)
          Enumerates the names bound in the named context.
 javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
          Enumerates the names bound in the named context, along with the objects bound to them.
protected  java.lang.Object localLookup(javax.naming.Name name)
          Lookup entry in local context.
 java.lang.Object lookup(javax.naming.Name name)
          Get the object named.
protected  javax.naming.Context lookupSubContext(javax.naming.Name name)
          Lookup a sub-context of current context.
protected abstract  javax.naming.Context newContext()
           
 void unbind(javax.naming.Name name)
          Unbind a object from a name.
 
クラス 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
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractLocalContext

public AbstractLocalContext(Namespace namespace,
                            java.util.Hashtable environment,
                            javax.naming.Context parent)
メソッドの詳細

getParent

protected final javax.naming.Context getParent()
Utility method to retrieve parent Context.
戻り値:
the parent Context if any

getNamespace

protected final Namespace getNamespace()
Utility method to retrieve the Namespace.
戻り値:
the Namespace

isDestroyableContext

protected boolean isDestroyableContext(java.lang.Object object)
                                throws javax.naming.NamingException

newContext

protected abstract javax.naming.Context newContext()
                                            throws javax.naming.NamingException

cloneContext

protected abstract javax.naming.Context cloneContext()
                                              throws javax.naming.NamingException

bind

protected void bind(javax.naming.Name name,
                    java.lang.Object object,
                    boolean rebind)
             throws javax.naming.NamingException
Helper method to bind
オーバーライド:
クラス AbstractContext 内の bind

doLocalBind

protected abstract void doLocalBind(javax.naming.Name name,
                                    java.lang.Object object)
                             throws javax.naming.NamingException

close

public void close()
クラス AbstractContext の記述:
Release resources associated with context.
オーバーライド:
クラス AbstractContext 内の close

createSubcontext

public javax.naming.Context createSubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException
Create a Subcontext.
パラメータ:
name - the name of subcontext
戻り値:
the created context
例外:
javax.naming.NamingException - if an error occurs (ie context exists, badly formated name etc)

destroySubcontext

public void destroySubcontext(javax.naming.Name name)
                       throws javax.naming.NamingException

checkUnbindContext

protected void checkUnbindContext(javax.naming.Name name,
                                  java.lang.Object entry)
                           throws javax.naming.NamingException

getNameInNamespace

public java.lang.String getNameInNamespace()
                                    throws javax.naming.NamingException

getNameParser

protected javax.naming.NameParser getNameParser()
                                         throws javax.naming.NamingException
オーバーライド:
クラス AbstractContext 内の getNameParser

list

public javax.naming.NamingEnumeration list(javax.naming.Name name)
                                    throws javax.naming.NamingException
Enumerates the names bound in the named context.
パラメータ:
name - the name of the context
戻り値:
the enumeration
例外:
javax.naming.NamingException - if an error occurs

doLocalList

protected abstract javax.naming.NamingEnumeration doLocalList()
                                                       throws javax.naming.NamingException

doLocalListBindings

protected abstract javax.naming.NamingEnumeration doLocalListBindings()
                                                               throws javax.naming.NamingException

listBindings

public javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
                                            throws javax.naming.NamingException
Enumerates the names bound in the named context, along with the objects bound to them.
パラメータ:
name - the name of the context
戻り値:
the enumeration
例外:
javax.naming.NamingException - if an error occurs

lookup

public java.lang.Object lookup(javax.naming.Name name)
                        throws javax.naming.NamingException
Get the object named.
パラメータ:
name - the name
戻り値:
the object
例外:
javax.naming.NamingException - if an error occurs (ie object name is inavlid or unbound)

localLookup

protected java.lang.Object localLookup(javax.naming.Name name)
                                throws javax.naming.NamingException
Lookup entry in local context.
パラメータ:
name - the name in local context (size() == 1)
戻り値:
the bound object
例外:
javax.naming.NamingException - if an error occurs

doLocalLookup

protected abstract java.lang.Object doLocalLookup(javax.naming.Name name)
                                           throws javax.naming.NamingException
Actually lookup raw entry in local context. When overidding this it is not neccesary to resolve references etc.
パラメータ:
name - the name in local context (size() == 1)
戻り値:
the bound object
例外:
javax.naming.NamingException - if an error occurs

lookupSubContext

protected javax.naming.Context lookupSubContext(javax.naming.Name name)
                                         throws javax.naming.NamingException
Lookup a sub-context of current context. Note that name must have 1 or more elements.
パラメータ:
name - the name of subcontext
戻り値:
the sub-Context
例外:
javax.naming.NamingException - if an error occurs (like named entry is not a Context)

unbind

public void unbind(javax.naming.Name name)
            throws javax.naming.NamingException
Unbind a object from a name.
パラメータ:
name - the name
例外:
javax.naming.NamingException - if an error occurs

doLocalUnbind

protected abstract void doLocalUnbind(javax.naming.Name name)
                               throws javax.naming.NamingException
Actually unbind raw entry in local context.
パラメータ:
name - the name in local context (size() == 1)
例外:
javax.naming.NamingException - if an error occurs


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."