org.apache.avalon.excalibur.naming
Class RemoteContext

java.lang.Object
  |
  +--org.apache.avalon.excalibur.naming.AbstractContext
        |
        +--org.apache.avalon.excalibur.naming.RemoteContext
All Implemented Interfaces:
Context, Serializable

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

public class RemoteContext
extends AbstractContext
implements Serializable

Context that hooks up to a remote source.

Version:
$Revision: 1.1 $
Author:
Peter Donald
See Also:
Serialized Form

Field Summary
static String NAMESPACE
          Deprecated.  
static String NAMESPACE_NAME
          Deprecated.  
static String NAMING_PROVIDER
          Deprecated.  
 
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
RemoteContext()
          Deprecated.  
RemoteContext(Hashtable environment, Name baseName)
          Deprecated.  
 
Method Summary
protected  void bind(Name name, Object object, boolean rebind)
          Deprecated. Helper method to bind
 void close()
          Deprecated. Release resources associated with context.
 Context createSubcontext(Name name)
          Deprecated. Create a Subcontext.
 void destroySubcontext(Name name)
          Deprecated.  
protected  void fillInContext(Context object)
          Deprecated.  
protected  Name getAbsoluteName(Name name)
          Deprecated.  
 String getNameInNamespace()
          Deprecated.  
protected  NameParser getNameParser()
          Deprecated.  
protected  Namespace getNamespace()
          Deprecated.  
protected  NamingProvider getProvider()
          Deprecated.  
protected  NamingException handleException(Exception e)
          Deprecated.  
 NamingEnumeration list(Name name)
          Deprecated. Enumerates the names bound in the named context.
 NamingEnumeration listBindings(Name name)
          Deprecated. Enumerates the names bound in the named context, along with the objects bound to them.
 Object lookup(Name name)
          Deprecated. Get the object named.
 void unbind(Name name)
          Deprecated. Unbind a object from a name.
 
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
 

Field Detail

NAMESPACE_NAME

public static final String NAMESPACE_NAME
Deprecated. 
See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
Deprecated. 
See Also:
Constant Field Values

NAMING_PROVIDER

public static final String NAMING_PROVIDER
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

RemoteContext

public RemoteContext()
Deprecated. 

RemoteContext

public RemoteContext(Hashtable environment,
                     Name baseName)
              throws NamingException
Deprecated. 
Method Detail

bind

protected void bind(Name name,
                    Object object,
                    boolean rebind)
             throws NamingException
Deprecated. 
Helper method to bind

Specified by:
bind in class AbstractContext
NamingException

close

public void close()
Deprecated. 
Release resources associated with context.

Specified by:
close in interface Context
Overrides:
close in class AbstractContext

createSubcontext

public Context createSubcontext(Name name)
                         throws NamingException
Deprecated. 
Create a Subcontext.

Specified by:
createSubcontext in interface Context
Parameters:
name - the name of subcontext
Returns:
the created context
Throws:
NamingException - if an error occurs (ie context exists, badly formated name etc)

destroySubcontext

public void destroySubcontext(Name name)
                       throws NamingException
Deprecated. 
Specified by:
destroySubcontext in interface Context
NamingException

getNameInNamespace

public String getNameInNamespace()
                          throws NamingException
Deprecated. 
Specified by:
getNameInNamespace in interface Context
NamingException

list

public NamingEnumeration list(Name name)
                       throws NamingException
Deprecated. 
Enumerates the names bound in the named context.

Specified by:
list in interface Context
Parameters:
name - the name of the context
Returns:
the enumeration
Throws:
NamingException - if an error occurs

listBindings

public NamingEnumeration listBindings(Name name)
                               throws NamingException
Deprecated. 
Enumerates the names bound in the named context, along with the objects bound to them.

Specified by:
listBindings in interface Context
Parameters:
name - the name of the context
Returns:
the enumeration
Throws:
NamingException - if an error occurs

lookup

public Object lookup(Name name)
              throws NamingException
Deprecated. 
Get the object named.

Specified by:
lookup in interface Context
Parameters:
name - the name
Returns:
the object
Throws:
NamingException - if an error occurs (ie object name is inavlid or unbound)

unbind

public void unbind(Name name)
            throws NamingException
Deprecated. 
Unbind a object from a name.

Specified by:
unbind in interface Context
Parameters:
name - the name
Throws:
NamingException - if an error occurs

fillInContext

protected void fillInContext(Context object)
                      throws NamingException
Deprecated. 
NamingException

getNamespace

protected Namespace getNamespace()
                          throws NamingException
Deprecated. 
NamingException

getProvider

protected NamingProvider getProvider()
                              throws NamingException
Deprecated. 
NamingException

getNameParser

protected NameParser getNameParser()
                            throws NamingException
Deprecated. 
Specified by:
getNameParser in class AbstractContext
NamingException

getAbsoluteName

protected Name getAbsoluteName(Name name)
                        throws NamingException
Deprecated. 
NamingException

handleException

protected NamingException handleException(Exception e)
Deprecated. 


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