com.sun.enterprise.naming.impl
Interface SerialContextProvider

All Superinterfaces:
Remote
All Known Implementing Classes:
LocalSerialContextProviderImpl, RemoteSerialContextProviderImpl, SerialContextProviderImpl

public interface SerialContextProvider
extends Remote


Method Summary
 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.
if - there is an RMI 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.
if - there is an RMI 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.
if - there is an RMI exception.
RemoteException

unbind

void unbind(String name)
            throws NamingException,
                   RemoteException
Unbind the specified object.

Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

rename

void rename(String oldname,
            String newname)
            throws NamingException,
                   RemoteException
Rename the bound object.

Throws:
NamingException - if there is a naming exception.
if - there is an RMI 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.
if - there is an RMI 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.
if - there is an RMI 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.
if - there is an RMI exception.
RemoteException


Copyright © 2012. All Rights Reserved.