public class SerialContextProviderImpl extends Object implements SerialContextProvider
Modifier | Constructor and Description |
---|---|
protected |
SerialContextProviderImpl(TransientContext rootContext) |
Modifier and Type | Method and 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.
|
protected SerialContextProviderImpl(TransientContext rootContext) throws RemoteException
RemoteException
public Object lookup(String name) throws NamingException, RemoteException
lookup
in interface SerialContextProvider
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public void bind(String name, Object obj) throws NamingException, RemoteException
bind
in interface SerialContextProvider
name
- the object or context bound to the name.obj
- NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public void rebind(String name, Object obj) throws NamingException, RemoteException
rebind
in interface SerialContextProvider
name
- the object or context bound to the nameobj
- NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public void unbind(String name) throws NamingException, RemoteException
unbind
in interface SerialContextProvider
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public void rename(String oldname, String newname) throws NamingException, RemoteException
rename
in interface SerialContextProvider
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public Hashtable list() throws RemoteException
list
in interface SerialContextProvider
RemoteException
public Hashtable list(String name) throws NamingException, RemoteException
list
in interface SerialContextProvider
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public Context createSubcontext(String name) throws NamingException, RemoteException
createSubcontext
in interface SerialContextProvider
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.public void destroySubcontext(String name) throws NamingException, RemoteException
destroySubcontext
in interface SerialContextProvider
NamingException
- if there is a naming exception.RemoteException
- if there is an RMI exception.Copyright © 2019. All rights reserved.