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
This class is the implementation of the local SerialContextProvider
- Author:
- Sheetal Vartak
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidoverriding 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.Lookup the specified name.voidoverriding 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 Details
-
LOCAL_PROVIDER_NULL
- See Also:
-
-
Method Details
-
bind
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- there is an RMI exception.
-
rebind
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- there is an RMI exception.
-
lookup
Description copied from interface:SerialContextProviderLookup the specified name.- Specified by:
lookupin interfaceSerialContextProvider- Overrides:
lookupin classSerialContextProviderImpl- Returns:
- the object or context bound to the name.
- Throws:
NamingException- if there is a naming exception.RemoteException- there is an RMI exception.
-