com.sun.enterprise.naming.impl
Interface SerialContextProvider

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
LocalSerialContextProviderImpl, RemoteSerialContextProviderImpl, SerialContextProviderImpl

public interface SerialContextProvider
extends java.rmi.Remote


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.
 

Method Detail

lookup

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

Returns:
the object or 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

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

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

rebind

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

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

unbind

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

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

rename

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

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

list

java.util.Hashtable list()
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

list

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

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

createSubcontext

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

Returns:
the created subcontext.
Throws:
javax.naming.NamingException - if there is a naming exception.
if - there is an RMI exception.
java.rmi.RemoteException

destroySubcontext

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

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.