Package com.sun.enterprise.naming.impl
Interface SerialContextProvider
-
- All Superinterfaces:
Remote
- All Known Implementing Classes:
LocalSerialContextProviderImpl,RemoteSerialContextProviderImpl,SerialContextProviderImpl
public interface SerialContextProvider extends Remote
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
lookup
Object lookup(String name) throws NamingException, RemoteException
Lookup the specified name.- Returns:
- the object or context bound to the name.
- Throws:
NamingException- if there is a naming exception.RemoteException
-
bind
void bind(String name, Object obj) throws NamingException, RemoteException
Bind the object to the specified name.- Throws:
NamingException- if there is a naming exception.RemoteException
-
rebind
void rebind(String name, Object obj) throws NamingException, RemoteException
Rebind the object to the specified name.- Throws:
NamingException- if there is a naming exception.RemoteException
-
unbind
void unbind(String name) throws NamingException, RemoteException
Unbind the specified object.- Throws:
NamingException- if there is a naming exception.RemoteException
-
rename
void rename(String oldname, String newname) throws NamingException, RemoteException
Rename the bound object.- Throws:
NamingException- if there is a naming exception.RemoteException
-
list
Hashtable list() throws RemoteException
- Throws:
RemoteException
-
list
Hashtable list(String name) throws NamingException, RemoteException
List the contents of the specified context.- Throws:
NamingException- if there is a naming exception.RemoteException
-
createSubcontext
Context createSubcontext(String name) throws NamingException, RemoteException
Create a subcontext with the specified name.- Returns:
- the created subcontext.
- Throws:
NamingException- if there is a naming exception.RemoteException
-
destroySubcontext
void destroySubcontext(String name) throws NamingException, RemoteException
Destroy the subcontext with the specified name.- Throws:
NamingException- if there is a naming exception.RemoteException
-
-