Package com.sun.enterprise.naming.impl
Class SerialContextProviderImpl
- java.lang.Object
-
- com.sun.enterprise.naming.impl.SerialContextProviderImpl
-
- All Implemented Interfaces:
SerialContextProvider,Remote
- Direct Known Subclasses:
LocalSerialContextProviderImpl,RemoteSerialContextProviderImpl
public class SerialContextProviderImpl extends Object implements SerialContextProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSerialContextProviderImpl(TransientContext rootContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(String name, Object obj)Bind the object to the specified name.ContextcreateSubcontext(String name)Create a subcontext with the specified name.voiddestroySubcontext(String name)Destroy the subcontext with the specified name.Hashtablelist()Hashtablelist(String name)List the contents of the specified context.Objectlookup(String name)Lookup the specified name.voidrebind(String name, Object obj)Rebind the object to the specified name.voidrename(String oldname, String newname)Rename the bound object.voidunbind(String name)Unbind the specified object.
-
-
-
Constructor Detail
-
SerialContextProviderImpl
protected SerialContextProviderImpl(TransientContext rootContext) throws RemoteException
- Throws:
RemoteException
-
-
Method Detail
-
lookup
public Object lookup(String name) throws NamingException, RemoteException
Lookup the specified name.- Specified by:
lookupin interfaceSerialContextProvider- Returns:
- the object orK context bound to the name.
- Throws:
NamingException- if there is a naming exception.RemoteException
-
bind
public void bind(String name, Object obj) throws NamingException, RemoteException
Bind the object to the specified name.- Specified by:
bindin interfaceSerialContextProvider- Throws:
NamingException- if there is a naming exception.RemoteException
-
rebind
public void rebind(String name, Object obj) throws NamingException, RemoteException
Rebind the object to the specified name.- Specified by:
rebindin interfaceSerialContextProvider- Throws:
NamingException- if there is a naming exception.RemoteException
-
unbind
public void unbind(String name) throws NamingException, RemoteException
Unbind the specified object.- Specified by:
unbindin interfaceSerialContextProvider- Throws:
NamingException- if there is a naming exception.RemoteException
-
rename
public void rename(String oldname, String newname) throws NamingException, RemoteException
Rename the bound object.- Specified by:
renamein interfaceSerialContextProvider- Throws:
NamingException- if there is a naming exception.RemoteException
-
list
public Hashtable list() throws RemoteException
- Specified by:
listin interfaceSerialContextProvider- Throws:
RemoteException
-
list
public Hashtable list(String name) throws NamingException, RemoteException
List the contents of the specified context.- Specified by:
listin interfaceSerialContextProvider- Throws:
NamingException- if there is a naming exception.RemoteException
-
createSubcontext
public Context createSubcontext(String name) throws NamingException, RemoteException
Create a subcontext with the specified name.- Specified by:
createSubcontextin interfaceSerialContextProvider- Returns:
- the created subcontext.
- Throws:
NamingException- if there is a naming exception.RemoteException
-
destroySubcontext
public void destroySubcontext(String name) throws NamingException, RemoteException
Destroy the subcontext with the specified name.- Specified by:
destroySubcontextin interfaceSerialContextProvider- Throws:
NamingException- if there is a naming exception.RemoteException
-
-