|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.carol.jndi.spi.VirtualJNDILookup
public class VirtualJNDILookup
Handles virtual JNDI lookup.
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 | |
---|---|
VirtualJNDILookup(Context parent)
Saves the parent context. |
Method Summary | |
---|---|
Object |
addToEnvironment(String propName,
Object propVal)
Calls the parent. |
void |
bind(Name name,
Object obj)
Calls the parent. |
void |
bind(String name,
Object obj)
Calls the parent. |
void |
close()
Calls the parent. |
Name |
composeName(Name name,
Name prefix)
Calls the parent. |
String |
composeName(String name,
String prefix)
Calls the parent. |
Context |
createSubcontext(Name name)
Calls the parent. |
Context |
createSubcontext(String name)
Calls the parent. |
void |
destroySubcontext(Name name)
Calls the parent. |
void |
destroySubcontext(String name)
Calls the parent. |
Hashtable<?,?> |
getEnvironment()
Calls the parent. |
String |
getNameInNamespace()
Calls the parent. |
NameParser |
getNameParser(Name name)
Calls the parent. |
NameParser |
getNameParser(String name)
Calls the parent. |
protected String |
getPrefix()
Gets the JNDI naming prefix. |
static VersioningService |
getVersioningService()
|
NamingEnumeration<NameClassPair> |
list(Name name)
Calls the parent. |
NamingEnumeration<NameClassPair> |
list(String name)
Calls the parent. |
NamingEnumeration<Binding> |
listBindings(Name name)
Calls the parent. |
NamingEnumeration<Binding> |
listBindings(String name)
Calls the parent. |
Object |
lookup(Name name)
|
Object |
lookup(String name)
Retrieves the named object using the prefixed naming strategy: First, the name prefix + name is looked up. |
Object |
lookupLink(Name name)
|
Object |
lookupLink(String name)
Retrieves the named object using the prefixed naming strategy: First, the name prefix + name is looked up. |
void |
rebind(Name name,
Object obj)
Calls the parent. |
void |
rebind(String name,
Object obj)
Calls the parent. |
Object |
removeFromEnvironment(String propName)
Calls the parent. |
void |
rename(Name oldName,
Name newName)
Calls the parent. |
void |
rename(String oldName,
String newName)
Calls the parent. |
static void |
setVersioningService(VersioningService versioningService)
|
void |
unbind(Name name)
Calls the parent. |
void |
unbind(String name)
Calls the parent. |
static void |
unsetVersioningService()
Sets the versioning service to null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualJNDILookup(Context parent)
parent
- Parent context.Method Detail |
---|
public Object lookup(String name) throws NamingException
lookup
in interface Context
name
- Name of the object to look up
NamingException
- If a naming exception is encounteredpublic Object lookup(Name name) throws NamingException
lookup
in interface Context
name
- Name of the object to look up
NamingException
- If a naming exception is encounteredlookup(String)
public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
name
- Name of the object to look up
NamingException
- if a naming exception is encounteredpublic Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
name
- Name of the object to look up
NamingException
- if a naming exception is encounteredlookupLink(String)
protected String getPrefix()
public static void setVersioningService(VersioningService versioningService)
versioningService
- The versioning service to set.public static void unsetVersioningService()
public static VersioningService getVersioningService()
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment
in interface Context
NamingException
public void bind(Name name, Object obj) throws NamingException
bind
in interface Context
NamingException
public void bind(String name, Object obj) throws NamingException
bind
in interface Context
NamingException
public void close() throws NamingException
close
in interface Context
NamingException
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
public Hashtable<?,?> getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
NamingException
public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
NamingException
public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
list
in interface Context
NamingException
public NamingEnumeration<NameClassPair> list(String name) throws NamingException
list
in interface Context
NamingException
public NamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings
in interface Context
NamingException
public NamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings
in interface Context
NamingException
public void rebind(Name name, Object obj) throws NamingException
rebind
in interface Context
NamingException
public void rebind(String name, Object obj) throws NamingException
rebind
in interface Context
NamingException
public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
NamingException
public void rename(Name oldName, Name newName) throws NamingException
rename
in interface Context
NamingException
public void rename(String oldName, String newName) throws NamingException
rename
in interface Context
NamingException
public void unbind(Name name) throws NamingException
unbind
in interface Context
NamingException
public void unbind(String name) throws NamingException
unbind
in interface Context
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |