Package org.omg.PortableInterceptor
Class CurrentHolder
- java.lang.Object
-
- org.omg.PortableInterceptor.CurrentHolder
-
- All Implemented Interfaces:
Streamable
public final class CurrentHolder extends java.lang.Object implements Streamable
Portable Interceptors Current (also known asPICurrent) is merely a slot table, the slots of which are used by each service to transfer their context data between their context and the request's or reply's service context. Each service which wishes to use PICurrent reserves a slot or slots at initialization time and uses those slots during the processing of requests and replies.Before an invocation is made, PICurrent is obtained via a call to
ORB.resolve_initial_references( "PICurrent" ). From within the interception points, the data on PICurrent that has moved from the thread scope to the request scope is available via theget_slotoperation on theRequestInfoobject. A PICurrent can still be obtained viaresolve_initial_references, but that is the Interceptor's thread scope PICurrent.
-
-
Constructor Summary
Constructors Constructor Description CurrentHolder()CurrentHolder(Current initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void_read(InputStream i)Reads data fromistreamand initalizes thevaluefield of the Holder with the unmarshalled data.TypeCode_type()Retrieves theTypeCodeobject corresponding to the value in thevaluefield of the Holder.void_write(OutputStream o)Marshals toostreamthe value in thevaluefield of the Holder.
-
-
-
Field Detail
-
value
public Current value
-
-
Constructor Detail
-
CurrentHolder
public CurrentHolder()
-
CurrentHolder
public CurrentHolder(Current initialValue)
-
-
Method Detail
-
_read
public void _read(InputStream i)
Description copied from interface:StreamableReads data fromistreamand initalizes thevaluefield of the Holder with the unmarshalled data.- Specified by:
_readin interfaceStreamable- Parameters:
i- the InputStream that represents the CDR data from the wire.
-
_write
public void _write(OutputStream o)
Description copied from interface:StreamableMarshals toostreamthe value in thevaluefield of the Holder.- Specified by:
_writein interfaceStreamable- Parameters:
o- the CDR OutputStream
-
_type
public TypeCode _type()
Description copied from interface:StreamableRetrieves theTypeCodeobject corresponding to the value in thevaluefield of the Holder.- Specified by:
_typein interfaceStreamable- Returns:
- the
TypeCodeobject for the value held in the holder
-
-