org.apache.geronimo.naming.geronimo
Class GeronimoContext
java.lang.Object
org.apache.geronimo.naming.java.ReadOnlyContext
org.apache.geronimo.naming.geronimo.GeronimoContext
- All Implemented Interfaces:
- Context, Serializable
- Direct Known Subclasses:
- GeronimoRootContext
- public class GeronimoContext
- extends ReadOnlyContext
- Version:
- $Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
- See Also:
- Serialized Form
| 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 |
| Methods inherited from class org.apache.geronimo.naming.java.ReadOnlyContext |
addToEnvironment, bind, bind, close, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, freeze, getEnvironment, getNameInNamespace, getNameParser, getNameParser, rebind, rebind, removeFromEnvironment, rename, rename, setClassLoader, setKernel, unbind, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
internalBind
protected Map internalBind(String name,
Object value)
throws NamingException
- Description copied from class:
ReadOnlyContext
- internalBind is intended for use only during setup or possibly by suitably synchronized superclasses.
It binds every possible lookup into a map in each context. To do this, each context
strips off one name segment and if necessary creates a new context for it. Then it asks that context
to bind the remaining name. It returns a map containing all the bindings from the next context, plus
the context it just created (if it in fact created it). (the names are suitably extended by the segment
originally lopped off).
- Overrides:
internalBind in class ReadOnlyContext
- Parameters:
name - value -
- Returns:
-
- Throws:
NamingException
newContext
protected ReadOnlyContext newContext()
- Overrides:
newContext in class ReadOnlyContext
internalUnbind
protected Set internalUnbind(String name)
throws NamingException
- Throws:
NamingException
lookup
public Object lookup(String name)
throws NamingException
- Specified by:
lookup in interface Context- Overrides:
lookup in class ReadOnlyContext
- Throws:
NamingException
lookup
public Object lookup(Name name)
throws NamingException
- Specified by:
lookup in interface Context- Overrides:
lookup in class ReadOnlyContext
- Throws:
NamingException
lookupLink
public Object lookupLink(String name)
throws NamingException
- Specified by:
lookupLink in interface Context- Overrides:
lookupLink in class ReadOnlyContext
- Throws:
NamingException
composeName
public Name composeName(Name name,
Name prefix)
throws NamingException
- Specified by:
composeName in interface Context- Overrides:
composeName in class ReadOnlyContext
- Throws:
NamingException
composeName
public String composeName(String name,
String prefix)
throws NamingException
- Specified by:
composeName in interface Context- Overrides:
composeName in class ReadOnlyContext
- Throws:
NamingException
list
public NamingEnumeration list(String name)
throws NamingException
- Specified by:
list in interface Context- Overrides:
list in class ReadOnlyContext
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(String name)
throws NamingException
- Specified by:
listBindings in interface Context- Overrides:
listBindings in class ReadOnlyContext
- Throws:
NamingException
lookupLink
public Object lookupLink(Name name)
throws NamingException
- Specified by:
lookupLink in interface Context- Overrides:
lookupLink in class ReadOnlyContext
- Throws:
NamingException
list
public NamingEnumeration list(Name name)
throws NamingException
- Specified by:
list in interface Context- Overrides:
list in class ReadOnlyContext
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(Name name)
throws NamingException
- Specified by:
listBindings in interface Context- Overrides:
listBindings in class ReadOnlyContext
- Throws:
NamingException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.