com.sun.enterprise.naming.impl
Class SerialContextProviderImpl

java.lang.Object
  extended by com.sun.enterprise.naming.impl.SerialContextProviderImpl
All Implemented Interfaces:
SerialContextProvider, Remote
Direct Known Subclasses:
LocalSerialContextProviderImpl, RemoteSerialContextProviderImpl

public class SerialContextProviderImpl
extends Object
implements SerialContextProvider


Constructor Summary
protected SerialContextProviderImpl(TransientContext rootContext)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface SerialContextProvider
Returns:
the object orK context bound to the name.
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

bind

public void bind(String name,
                 Object obj)
          throws NamingException,
                 RemoteException
Bind the object to the specified name.

Specified by:
bind in interface SerialContextProvider
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

rebind

public void rebind(String name,
                   Object obj)
            throws NamingException,
                   RemoteException
Rebind the object to the specified name.

Specified by:
rebind in interface SerialContextProvider
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

unbind

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

Specified by:
unbind in interface SerialContextProvider
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

rename

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

Specified by:
rename in interface SerialContextProvider
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

list

public Hashtable list()
               throws RemoteException
Specified by:
list in interface SerialContextProvider
Throws:
RemoteException

list

public Hashtable list(String name)
               throws NamingException,
                      RemoteException
List the contents of the specified context.

Specified by:
list in interface SerialContextProvider
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

createSubcontext

public Context createSubcontext(String name)
                         throws NamingException,
                                RemoteException
Create a subcontext with the specified name.

Specified by:
createSubcontext in interface SerialContextProvider
Returns:
the created subcontext.
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException

destroySubcontext

public void destroySubcontext(String name)
                       throws NamingException,
                              RemoteException
Destroy the subcontext with the specified name.

Specified by:
destroySubcontext in interface SerialContextProvider
Throws:
NamingException - if there is a naming exception.
if - there is an RMI exception.
RemoteException


Copyright © 2012. All Rights Reserved.