Implementation of Context interface.
All Names are expected to be Compound, not Composite.
| Modifier and Type | Class and Description |
|---|---|
| public class | NamingContext.BindingEnumeration
BindingEnumeration Implementation of NamingEnumeration Notes Used to return results of Context.listBindings(); Usage |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| protected Hashtable | |
| protected Hashtable | |
| protected String | |
| protected Context | |
| protected NameParser | |
| public static final Enumeration | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | NamingContext(Hashtable<K, V>
environment properties env, String relative name of this context name, Context immediate ancestor Context (can be null) parent, NameParser NameParser for this Context parser)Constructor |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addBinding(Name
a name, Object Name valuean obj)Object valueAdd a name to object binding to this Context. |
| public Object | Returns: propVal or previous value of the propertyname of the property to add propName, Object value of the property to add propVal)Implements javax. |
| public void | bind(Name
Name of the object name, Object object to bind obj)Implements javax. |
| public void | bind(String
a name, Object String valuean obj)Object valueImplements javax. |
| public Object | Returns: copy of this NamingContextOverrides java. |
| public void | |
| public Name | Returns: aName valuea name, Name Name valuea prefix)Name valueImplements javax. |
| public String | Returns: aName valuea name, String Name valuea prefix)Name valueImplements javax. |
| public Context | Returns: aContext valuea name)Name valueImplements javax. |
| public Context | Returns: aContext valuea name)String valueImplements javax. |
| public void | destroySubcontext(String
name of subcontext to remove name)Implements javax. |
| public void | destroySubcontext(Name
name of subcontext to remove name)Implements javax. |
| protected Binding | Returns: aBinding valuea name)Name valueGet a name to object binding from this Context |
| protected Binding | Returns: null or the Bindingas a String name)Get a name to object binding from this Context |
| public Hashtable | Returns: a copy of the environment of this Context.Implements javax. |
| public String | |
| public String | Returns: the full name of this ContextImplements javax. |
| public NameParser | Returns: aNameParser valuea name)Name valueImplements javax. |
| public NameParser | Returns: aNameParser valuea name)Name valueImplements javax. |
| public Context | |
| private boolean | |
| public NamingEnumeration | Returns: aNamingEnumeration valuea name)Name valueImplements javax. |
| public NamingEnumeration | Returns: aNamingEnumeration valuea name)Name valueImplements javax. |
| public NamingEnumeration | Returns: aNamingEnumeration valuea name)Name valueImplements javax. |
| public NamingEnumeration | Returns: aNamingEnumeration valuea name)String valueImplements javax. |
| public Object | lookup(Name
name of bound object name)Implements javax. |
| public Object | Returns: object bound to namename of bound object name)Implements javax. |
| public Object | Returns: LinkRef or plain object bound at namename of link binding name)Implements javax. |
| public Object | Returns: LinkRef or plain object bound at namename of link binding name)Implements javax. |
| public void | rebind(Name
a name, Object Name valuean obj)Object valueImplements javax. |
| public void | rebind(String
a name, Object String valuean obj)Object valueImplements javax. |
| protected void | |
| public Object | Returns: value of property or null if it didn't existname of property to remove propName)Implements javax. |
| public void | rename(Name
a oldName, Name Name valuea newName)Name valueImplements javax. |
| public void | rename(String
a oldName, String Name valuea newName)Name valueImplements javax. |
| public void | |
| public Name | Returns: normalized namethe name to normalize name)Remove leading or trailing empty components from name. |
| public void | |
| public void |