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
Class to lookup JNDI objects
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SerialContextProviderImpl(TransientContext rootContext)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
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:
lookup
in interfaceSerialContextProvider
- Returns:
- name the object or context bound to the name.
- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
bind
public void bind(String name, Object obj) throws NamingException, RemoteException
Bind the object to the specified name.- Specified by:
bind
in interfaceSerialContextProvider
- Parameters:
name
- the object or context bound to the name.obj
-- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
rebind
public void rebind(String name, Object obj) throws NamingException, RemoteException
Rebind the object to the specified name.- Specified by:
rebind
in interfaceSerialContextProvider
- Parameters:
name
- the object or context bound to the nameobj
-- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
unbind
public void unbind(String name) throws NamingException, RemoteException
Unbind the specified object.- Specified by:
unbind
in interfaceSerialContextProvider
- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
rename
public void rename(String oldname, String newname) throws NamingException, RemoteException
Rename the bound object.- Specified by:
rename
in interfaceSerialContextProvider
- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
list
public Hashtable list() throws RemoteException
- Specified by:
list
in interfaceSerialContextProvider
- Throws:
RemoteException
-
list
public Hashtable list(String name) throws NamingException, RemoteException
List the contents of the specified context.- Specified by:
list
in interfaceSerialContextProvider
- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
createSubcontext
public Context createSubcontext(String name) throws NamingException, RemoteException
Create a subcontext with the specified name.- Specified by:
createSubcontext
in interfaceSerialContextProvider
- Returns:
- the created subcontext.
- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
destroySubcontext
public void destroySubcontext(String name) throws NamingException, RemoteException
Destroy the subcontext with the specified name.- Specified by:
destroySubcontext
in interfaceSerialContextProvider
- Throws:
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.
-
-