public class RelativeContext extends AbstractContext
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 and Description |
---|
RelativeContext(FastHashtable<String,Object> environment,
AbstractContext rootContext,
SimpleName prefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindNative(Name name,
Object obj) |
void |
close() |
protected Context |
createSubcontextNative(Name name) |
protected void |
destroySubcontextNative(Name name) |
String |
getNameInNamespace() |
NameParser |
getNativeNameParser()
Get the native name parser for this context.
|
protected CloseableNamingEnumeration<Binding> |
listBindingsNative(Name name) |
protected CloseableNamingEnumeration<NameClassPair> |
listNative(Name name) |
protected Object |
lookupLinkNative(Name name) |
protected Object |
lookupNative(Name name)
Look up a compound name within this naming system.
|
protected void |
rebindNative(Name name,
Object obj) |
protected void |
renameNative(Name oldName,
Name newName) |
protected void |
unbindNative(Name name) |
addToEnvironment, bind, bind, composeName, composeName, createSubcontext, createSubcontext, decomposeName, destroySubcontext, destroySubcontext, getEnvironment, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, nameNotFound, notSupported, readOnlyContext, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
public RelativeContext(FastHashtable<String,Object> environment, AbstractContext rootContext, SimpleName prefix)
protected Object lookupNative(Name name) throws NamingException
AbstractContext
CompositeName
.lookupNative
in class AbstractContext
name
- the (compound) name (not null
)NamingException
- if an error occursprotected void bindNative(Name name, Object obj) throws NamingException
bindNative
in class AbstractContext
NamingException
protected void rebindNative(Name name, Object obj) throws NamingException
rebindNative
in class AbstractContext
NamingException
protected void unbindNative(Name name) throws NamingException
unbindNative
in class AbstractContext
NamingException
protected void renameNative(Name oldName, Name newName) throws NamingException
renameNative
in class AbstractContext
NamingException
protected CloseableNamingEnumeration<NameClassPair> listNative(Name name) throws NamingException
listNative
in class AbstractContext
NamingException
protected CloseableNamingEnumeration<Binding> listBindingsNative(Name name) throws NamingException
listBindingsNative
in class AbstractContext
NamingException
protected void destroySubcontextNative(Name name) throws NamingException
destroySubcontextNative
in class AbstractContext
NamingException
protected Context createSubcontextNative(Name name) throws NamingException
createSubcontextNative
in class AbstractContext
NamingException
protected Object lookupLinkNative(Name name) throws NamingException
lookupLinkNative
in class AbstractContext
NamingException
public void close()
public String getNameInNamespace() throws NamingException
NamingException
public NameParser getNativeNameParser()
AbstractContext
SimpleName
instances but may be overridden as desired.getNativeNameParser
in class AbstractContext
Copyright © 2019 JBoss by Red Hat. All rights reserved.