com.sun.enterprise.naming.impl
Class SerialContextProviderImpl

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

public class SerialContextProviderImpl
extends java.lang.Object
implements SerialContextProvider


Constructor Summary
protected SerialContextProviderImpl(TransientContext rootContext)
           
 
Method Summary
 void bind(java.lang.String name, java.lang.Object obj)
          Bind the object to the specified name.
 javax.naming.Context createSubcontext(java.lang.String name)
          Create a subcontext with the specified name.
 void destroySubcontext(java.lang.String name)
          Destroy the subcontext with the specified name.
 java.util.Hashtable list()
           
 java.util.Hashtable list(java.lang.String name)
          List the contents of the specified context.
 java.lang.Object lookup(java.lang.String name)
          Lookup the specified name.
 void rebind(java.lang.String name, java.lang.Object obj)
          Rebind the object to the specified name.
 void rename(java.lang.String oldname, java.lang.String newname)
          Rename the bound object.
 void unbind(java.lang.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 java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

lookup

public java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException,
                               java.rmi.RemoteException
Lookup the specified name.

Specified by:
lookup in interface SerialContextProvider
Returns:
the object orK context bound to the name.
Throws:
javax.naming.NamingException - if there is a naming exception.
if - there is an RMI exception.
java.rmi.RemoteException

bind

public void bind(java.lang.String name,
                 java.lang.Object obj)
          throws javax.naming.NamingException,
                 java.rmi.RemoteException
Bind the object to the specified name.

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

rebind

public void rebind(java.lang.String name,
                   java.lang.Object obj)
            throws javax.naming.NamingException,
                   java.rmi.RemoteException
Rebind the object to the specified name.

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

unbind

public void unbind(java.lang.String name)
            throws javax.naming.NamingException,
                   java.rmi.RemoteException
Unbind the specified object.

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

rename

public void rename(java.lang.String oldname,
                   java.lang.String newname)
            throws javax.naming.NamingException,
                   java.rmi.RemoteException
Rename the bound object.

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

list

public java.util.Hashtable list()
                         throws java.rmi.RemoteException
Specified by:
list in interface SerialContextProvider
Throws:
java.rmi.RemoteException

list

public java.util.Hashtable list(java.lang.String name)
                         throws javax.naming.NamingException,
                                java.rmi.RemoteException
List the contents of the specified context.

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

createSubcontext

public javax.naming.Context createSubcontext(java.lang.String name)
                                      throws javax.naming.NamingException,
                                             java.rmi.RemoteException
Create a subcontext with the specified name.

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

destroySubcontext

public void destroySubcontext(java.lang.String name)
                       throws javax.naming.NamingException,
                              java.rmi.RemoteException
Destroy the subcontext with the specified name.

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


Copyright © 2012 GlassFish Community. All Rights Reserved.