com.sun.enterprise.naming.impl
Class LocalSerialContextProviderImpl

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

public class LocalSerialContextProviderImpl
extends SerialContextProviderImpl

This class is the implementation of the local SerialContextProvider

Author:
Sheetal Vartak

Method Summary
 void bind(java.lang.String name, java.lang.Object obj)
          overriding the super.bind() since we need to make a copy of the object before it gets put into the rootContext Remote Provider already does that since when a method is called on a remote object (in our case the remote provider), the copies of the method arguments get passed and not the real objects.
 java.lang.Object lookup(java.lang.String name)
          Lookup the specified name.
 void rebind(java.lang.String name, java.lang.Object obj)
          overriding the super.rebind() since we need to make a copy of the object before it gets put into the rootContext.
 
Methods inherited from class com.sun.enterprise.naming.impl.SerialContextProviderImpl
createSubcontext, destroySubcontext, list, list, rename, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bind

public void bind(java.lang.String name,
                 java.lang.Object obj)
          throws javax.naming.NamingException,
                 java.rmi.RemoteException
overriding the super.bind() since we need to make a copy of the object before it gets put into the rootContext Remote Provider already does that since when a method is called on a remote object (in our case the remote provider), the copies of the method arguments get passed and not the real objects.

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

rebind

public void rebind(java.lang.String name,
                   java.lang.Object obj)
            throws javax.naming.NamingException,
                   java.rmi.RemoteException
overriding the super.rebind() since we need to make a copy of the object before it gets put into the rootContext. Remote Provider already does that since when a method is called on a remote object (in our case the remote provider), the copies of the method arguments get passed and not the real objects.

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

lookup

public java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException,
                               java.rmi.RemoteException
Description copied from class: SerialContextProviderImpl
Lookup the specified name.

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


Copyright © 2012 GlassFish Community. All Rights Reserved.