Package com.sun.enterprise.naming.impl
Class LocalSerialContextProviderImpl
- java.lang.Object
-
- com.sun.enterprise.naming.impl.SerialContextProviderImpl
-
- com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl
-
- All Implemented Interfaces:
SerialContextProvider,Remote
public class LocalSerialContextProviderImpl extends SerialContextProviderImpl
This class is the implementation of the local SerialContextProvider- Author:
- Sheetal Vartak
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOCAL_PROVIDER_NULL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(String name, 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.Objectlookup(String name)Lookup the specified name.voidrebind(String name, 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
-
-
-
-
Field Detail
-
LOCAL_PROVIDER_NULL
public static final String LOCAL_PROVIDER_NULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
bind
public void bind(String name, Object obj) throws NamingException, 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:
bindin interfaceSerialContextProvider- Overrides:
bindin classSerialContextProviderImpl- Throws:
NamingException- if there is a naming exception.RemoteException
-
rebind
public void rebind(String name, Object obj) throws NamingException, 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:
rebindin interfaceSerialContextProvider- Overrides:
rebindin classSerialContextProviderImpl- Throws:
NamingException- if there is a naming exception.RemoteException
-
lookup
public Object lookup(String name) throws NamingException, RemoteException
Description copied from class:SerialContextProviderImplLookup the specified name.- Specified by:
lookupin interfaceSerialContextProvider- Overrides:
lookupin classSerialContextProviderImpl- Returns:
- the object orK context bound to the name.
- Throws:
NamingException- if there is a naming exception.RemoteException
-
-