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