org.apache.geronimo.naming.enc
Class EnterpriseNamingContext.NestedEnterpriseNamingContext

java.lang.Object
  extended byorg.apache.geronimo.naming.enc.AbstractReadOnlyContext
      extended byorg.apache.geronimo.naming.enc.EnterpriseNamingContext.NestedEnterpriseNamingContext
All Implemented Interfaces:
Context, Serializable
Enclosing class:
EnterpriseNamingContext

public final class EnterpriseNamingContext.NestedEnterpriseNamingContext
extends org.apache.geronimo.naming.enc.AbstractReadOnlyContext

Nested context which shares the global bindings map.

See Also:
Serialized Form

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
EnterpriseNamingContext.NestedEnterpriseNamingContext(String nameInNamespace, org.apache.geronimo.naming.enc.EnterpriseNamingContext.Node bindings)
           
 
Method Summary
 Object addToEnvironment(String propName, Object propVal)
           
 void bind(Name name, Object obj)
           
 void bind(String name, Object obj)
           
 void close()
           
 Name composeName(Name name, Name prefix)
           
 String composeName(String name, String prefix)
           
 Context createSubcontext(Name name)
           
 Context createSubcontext(String name)
           
 void destroySubcontext(Name name)
           
 void destroySubcontext(String name)
           
 Hashtable getEnvironment()
           
protected  Map getGlobalBindings()
           
protected  Map getLocalBindings()
           
 String getNameInNamespace()
           
 NameParser getNameParser(Name name)
           
 NameParser getNameParser(String name)
           
 NamingEnumeration list(Name name)
           
 NamingEnumeration list(String name)
           
 NamingEnumeration listBindings(Name name)
           
 NamingEnumeration listBindings(String name)
           
 Object lookup(Name name)
           
 Object lookup(String name)
           
 Object lookupLink(Name name)
           
 Object lookupLink(String name)
           
 void rebind(Name name, Object obj)
           
 void rebind(String name, Object obj)
           
 Object removeFromEnvironment(String propName)
           
 void rename(Name oldName, Name newName)
           
 void rename(String oldName, String newName)
           
 void unbind(Name name)
           
 void unbind(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseNamingContext.NestedEnterpriseNamingContext

public EnterpriseNamingContext.NestedEnterpriseNamingContext(String nameInNamespace,
                                                             org.apache.geronimo.naming.enc.EnterpriseNamingContext.Node bindings)
Method Detail

getGlobalBindings

protected Map getGlobalBindings()

getLocalBindings

protected Map getLocalBindings()

lookup

public final Object lookup(String name)
                    throws NamingException
Specified by:
lookup in interface Context
Throws:
NamingException

lookup

public final Object lookup(Name name)
                    throws NamingException
Specified by:
lookup in interface Context
Throws:
NamingException

lookupLink

public final Object lookupLink(Name name)
                        throws NamingException
Specified by:
lookupLink in interface Context
Throws:
NamingException

lookupLink

public final Object lookupLink(String name)
                        throws NamingException
Specified by:
lookupLink in interface Context
Throws:
NamingException

list

public final NamingEnumeration list(String name)
                             throws NamingException
Specified by:
list in interface Context
Throws:
NamingException

listBindings

public final NamingEnumeration listBindings(String name)
                                     throws NamingException
Specified by:
listBindings in interface Context
Throws:
NamingException

list

public final NamingEnumeration list(Name name)
                             throws NamingException
Specified by:
list in interface Context
Throws:
NamingException

listBindings

public final NamingEnumeration listBindings(Name name)
                                     throws NamingException
Specified by:
listBindings in interface Context
Throws:
NamingException

getNameInNamespace

public final String getNameInNamespace()
Specified by:
getNameInNamespace in interface Context

getNameParser

public final NameParser getNameParser(Name name)
Specified by:
getNameParser in interface Context

getNameParser

public final NameParser getNameParser(String name)
Specified by:
getNameParser in interface Context

composeName

public final Name composeName(Name name,
                              Name prefix)
                       throws NamingException
Specified by:
composeName in interface Context
Throws:
NamingException

composeName

public final String composeName(String name,
                                String prefix)
                         throws NamingException
Specified by:
composeName in interface Context
Throws:
NamingException

getEnvironment

public final Hashtable getEnvironment()
Specified by:
getEnvironment in interface Context

addToEnvironment

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

removeFromEnvironment

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

bind

public final void bind(Name name,
                       Object obj)
                throws NamingException
Specified by:
bind in interface Context
Throws:
NamingException

bind

public final void bind(String name,
                       Object obj)
                throws NamingException
Specified by:
bind in interface Context
Throws:
NamingException

close

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

createSubcontext

public final Context createSubcontext(Name name)
                               throws NamingException
Specified by:
createSubcontext in interface Context
Throws:
NamingException

createSubcontext

public final Context createSubcontext(String name)
                               throws NamingException
Specified by:
createSubcontext in interface Context
Throws:
NamingException

destroySubcontext

public final void destroySubcontext(Name name)
                             throws NamingException
Specified by:
destroySubcontext in interface Context
Throws:
NamingException

destroySubcontext

public final void destroySubcontext(String name)
                             throws NamingException
Specified by:
destroySubcontext in interface Context
Throws:
NamingException

rebind

public final void rebind(Name name,
                         Object obj)
                  throws NamingException
Specified by:
rebind in interface Context
Throws:
NamingException

rebind

public final void rebind(String name,
                         Object obj)
                  throws NamingException
Specified by:
rebind in interface Context
Throws:
NamingException

rename

public final void rename(Name oldName,
                         Name newName)
                  throws NamingException
Specified by:
rename in interface Context
Throws:
NamingException

rename

public final void rename(String oldName,
                         String newName)
                  throws NamingException
Specified by:
rename in interface Context
Throws:
NamingException

unbind

public final void unbind(Name name)
                  throws NamingException
Specified by:
unbind in interface Context
Throws:
NamingException

unbind

public final void unbind(String name)
                  throws NamingException
Specified by:
unbind in interface Context
Throws:
NamingException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.