org.openmdx.kernel.naming.spi
Class NameBasedContext
java.lang.Object
org.openmdx.kernel.naming.spi.AbstractContext
org.openmdx.kernel.naming.spi.NameBasedContext
- All Implemented Interfaces:
- Context
- Direct Known Subclasses:
- ClassLoaderContext, HashMapContext
public abstract class NameBasedContext
- extends AbstractContext
Name Based Context
| 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 |
NameBasedContext
protected NameBasedContext()
- Constructor
resolveLink
protected abstract Object resolveLink(String nameComponent)
throws NamingException
- Resolve a binding
- Parameters:
nameComponent -
- Returns:
- the object bound to the given name or null if not found
- Throws:
NamingException
listBindings
protected abstract NamingEnumeration listBindings()
throws NamingException
- List the bindings
- Returns:
- this context's bindings
- Throws:
NamingException
bind
public void bind(Name name,
Object obj)
throws NamingException
- Throws:
NamingException
unbind
public void unbind(Name name)
throws NamingException
- Throws:
NamingException
createSubcontext
public Context createSubcontext(Name name)
throws NamingException
- Throws:
NamingException
destroySubcontext
public void destroySubcontext(Name name)
throws NamingException
- Throws:
NamingException
rebind
public void rebind(Name name,
Object obj)
throws NamingException
- Throws:
NamingException
composeName
public Name composeName(Name name,
Name prefix)
throws NamingException
- Throws:
NamingException
getNameParser
public NameParser getNameParser(Name name)
throws NamingException
- Throws:
NamingException
lookup
public Object lookup(Name name)
throws NamingException
- Throws:
NamingException
lookupLink
public Object lookupLink(Name name)
throws NamingException
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(Name name)
throws NamingException
- Throws:
NamingException
list
public NamingEnumeration list(Name name)
throws NamingException
- Throws:
NamingException
rename
public void rename(Name oldName,
Name newName)
throws NamingException
- Throws:
NamingException
resolve
protected Object resolve(String nameComponent)
throws NamingException
- Resolve a binding or throw an exception
- Parameters:
nameComponent -
- Returns:
- the object bound to the given name but never null
- Throws:
NamingException
bind
public void bind(String name,
Object obj)
throws NamingException
- Throws:
NamingException
unbind
public void unbind(String name)
throws NamingException
- Throws:
NamingException
composeName
public String composeName(String name,
String prefix)
throws NamingException
- Throws:
NamingException
createSubcontext
public Context createSubcontext(String name)
throws NamingException
- Throws:
NamingException
destroySubcontext
public void destroySubcontext(String name)
throws NamingException
- Throws:
NamingException
getNameParser
public NameParser getNameParser(String name)
throws NamingException
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(String name)
throws NamingException
- Throws:
NamingException
list
public NamingEnumeration list(String name)
throws NamingException
- Throws:
NamingException
lookup
public Object lookup(String name)
throws NamingException
- Throws:
NamingException
lookupLink
public Object lookupLink(String name)
throws NamingException
- Throws:
NamingException
rebind
public void rebind(String name,
Object obj)
throws NamingException
- Throws:
NamingException
rename
public void rename(String oldName,
String newName)
throws NamingException
- Throws:
NamingException
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.