|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.naming.impl.TransientContext
public class TransientContext
Class to implement multiple level of subcontexts in SerialContext. To use this class a new object of class InitialContext (env) should be instantiated. The env i.e the Environment is initialised with SerialInitContextFactory An example for using this is in /test/subcontext
| Field Summary | |
|---|---|
static boolean |
debug
|
| 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 | |
|---|---|
TransientContext()
|
|
| Method Summary | |
|---|---|
Object |
addToEnvironment(String propName,
Object propVal)
Add the property name and value to the environment. |
void |
bind(Name name,
Object obj)
Bind the object to the specified name. |
void |
bind(String name,
Object obj)
Bind the object to the specified name. |
void |
close()
Invalidate the current environment. |
Name |
composeName(Name name,
Name prefix)
Compose a new name specified by name and prefix. |
String |
composeName(String name,
String prefix)
Compose a new name specified by name and prefix. |
Context |
createSubcontext(Name name)
Create a subcontext with the specified name. |
Context |
createSubcontext(String name)
Create a subcontext with the specified name. |
void |
destroySubcontext(Name name)
Destroy the subcontext with the specified name. |
void |
destroySubcontext(String name)
Destroy the subcontext with the specified name. |
Hashtable |
getEnvironment()
List the current environment. |
String |
getNameInNamespace()
Operation not supported. |
NameParser |
getNameParser(Name name)
List the NameParser specified by name. |
NameParser |
getNameParser(String name)
List the NameParser specified by name. |
Hashtable |
list()
list the objects stored by the current context |
NamingEnumeration<NameClassPair> |
list(Name name)
List the objects specified by name. |
NamingEnumeration<NameClassPair> |
list(String name)
List the objects specified by name. |
NamingEnumeration<Binding> |
listBindings(Name name)
List the binding of objects specified by name. |
NamingEnumeration<Binding> |
listBindings(String name)
List the bindings of objects present in name. |
Hashtable |
listContext(String name)
List the objects specified by name. |
Object |
lookup(Name name)
Lookup the specified name. |
Object |
lookup(String name)
Lookup the specified name. |
Object |
lookupLink(Name name)
Lookup name. |
Object |
lookupLink(String name)
Lookup the name. |
void |
rebind(Name name,
Object obj)
Binds or rebinds the object specified by name |
void |
rebind(String name,
Object obj)
Rebinds the object specified by name |
Object |
removeFromEnvironment(String propName)
Remove property from the environment. |
void |
rename(Name oldname,
Name newname)
Rename the object specified by oldname to newname |
void |
rename(String oldname,
String newname)
Rename the object specified by oldname to newname |
void |
unbind(Name name)
Unbinds the object specified by name |
void |
unbind(String name)
Unbinds the object specified by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean debug
| Constructor Detail |
|---|
public TransientContext()
| Method Detail |
|---|
public Context createSubcontext(String name)
throws NamingException
createSubcontext in interface ContextNamingException - if there is a naming exception.
public Context createSubcontext(Name name)
throws NamingException
createSubcontext in interface ContextNamingException - if there is a naming exception.
public void destroySubcontext(String name)
throws NamingException
destroySubcontext in interface ContextNamingException - if there is a naming exception.
public void destroySubcontext(Name name)
throws NamingException
destroySubcontext in interface ContextNamingException - if there is a naming exception.
public Object lookup(String name)
throws NamingException
lookup in interface ContextNamingException - if there is a naming exception.
RemoteException - if there is an RMI exception.
public Object lookup(Name name)
throws NamingException
lookup in interface ContextNamingException - if there is a naming exception.
RemoteException - if there is an RMI exception.
public void bind(String name,
Object obj)
throws NamingException
bind in interface ContextNamingException - if there is a naming exception.
RemoteException - if there is an RMI exception.
public void bind(Name name,
Object obj)
throws NamingException
bind in interface ContextNamingException - if there is a naming exception.
RemoteException - if there is an RMI exception.
public void rebind(String name,
Object obj)
throws NamingException
rebind in interface ContextNamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public void rebind(Name name,
Object obj)
throws NamingException
rebind in interface ContextNamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public void unbind(String name)
throws NamingException
unbind in interface ContextNamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public void unbind(Name name)
throws NamingException
unbind in interface ContextNamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public void rename(Name oldname,
Name newname)
throws NamingException
rename in interface ContextNamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public void rename(String oldname,
String newname)
throws NamingException
rename in interface ContextNamingException - if there is a naming exception
RemoteException - if there is a RMI exceptionpublic Hashtable list()
NamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public Hashtable listContext(String name)
throws NamingException
NamingException - if there is a naming exception
RemoteException - if there is a RMI exception
public NamingEnumeration<NameClassPair> list(Name name)
throws NamingException
list in interface ContextNamingException - if there is a naming exception
public NamingEnumeration<NameClassPair> list(String name)
throws NamingException
list in interface ContextNamingException - if there is a naming exception
public NamingEnumeration<Binding> listBindings(String name)
throws NamingException
listBindings in interface ContextNamingException - if there is a naming exception
public NamingEnumeration<Binding> listBindings(Name name)
throws NamingException
listBindings in interface ContextNamingException - if there is a naming exception
public Object lookupLink(String name)
throws NamingException
lookupLink in interface ContextNamingException - if there is a naming exception
public Object lookupLink(Name name)
throws NamingException
lookupLink in interface ContextNamingException - if there is a naming exception
public NameParser getNameParser(String name)
throws NamingException
getNameParser in interface ContextNamingException - if there is a naming exception
public NameParser getNameParser(Name name)
throws NamingException
getNameParser in interface ContextNamingException - if there is a naming exception
public String composeName(String name,
String prefix)
throws NamingException
composeName in interface ContextNamingException - if there is a naming exception
public Name composeName(Name name,
Name prefix)
throws NamingException
composeName in interface ContextNamingException - if there is a naming exception
public Object addToEnvironment(String propName,
Object propVal)
throws NamingException
addToEnvironment in interface ContextNamingException - if there is a naming exception
public Object removeFromEnvironment(String propName)
throws NamingException
removeFromEnvironment in interface ContextNamingException - if there is a naming exception
public Hashtable getEnvironment()
throws NamingException
getEnvironment in interface ContextNamingException - if there is a naming exception
public void close()
throws NamingException
close in interface ContextNamingException
public String getNameInNamespace()
throws NamingException
getNameInNamespace in interface ContextNamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||