Package com.sun.corba.ee.impl.ior
Class ObjectReferenceTemplateImpl
java.lang.Object
com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
com.sun.corba.ee.impl.ior.ObjectReferenceTemplateImpl
- All Implemented Interfaces:
Serializable,IDLEntity,Streamable,StreamableValue,ValueBase,ObjectReferenceFactory,ObjectReferenceTemplate
public class ObjectReferenceTemplateImpl
extends ObjectReferenceProducerBase
implements ObjectReferenceTemplate, StreamableValue
This is an implementation of the ObjectReferenceTemplate abstract value
type defined by the portable interceptors IDL.
Note that this is a direct Java implementation
of the abstract value type: there is no stateful value type defined in IDL,
since defining the state in IDL is awkward and inefficient. The best way
to define the state is to use internal data structures that can be written
to and read from CORBA streams.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IORTemplatestatic final Stringprivate static final longFields inherited from class com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
orb -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid_read(InputStream is) Reads data fromistreamand initalizes thevaluefield of the Holder with the unmarshalled data.String[]Provides truncatable repository ids._type()Retrieves theTypeCodeobject corresponding to the value in thevaluefield of the Holder.void_write(OutputStream os) Marshals toostreamthe value in thevaluefield of the Holder.String[]booleaninthashCode()orb_id()Methods inherited from class com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
make_objectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omg.PortableInterceptor.ObjectReferenceFactory
make_object
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
iorTemplate
-
repositoryId
- See Also:
-
-
Constructor Details
-
ObjectReferenceTemplateImpl
-
ObjectReferenceTemplateImpl
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
_truncatable_ids
Description copied from interface:ValueBaseProvides truncatable repository ids.- Specified by:
_truncatable_idsin interfaceValueBase- Returns:
- a String array--list of truncatable repository ids.
-
_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
-
_read
Description copied from interface:StreamableReads data fromistreamand initalizes thevaluefield of the Holder with the unmarshalled data.- Specified by:
_readin interfaceStreamable- Parameters:
is- the InputStream that represents the CDR data from the wire.
-
_write
Description copied from interface:StreamableMarshals toostreamthe value in thevaluefield of the Holder.- Specified by:
_writein interfaceStreamable- Parameters:
os- the CDR OutputStream
-
server_id
- Specified by:
server_idin interfaceObjectReferenceTemplate
-
orb_id
- Specified by:
orb_idin interfaceObjectReferenceTemplate
-
adapter_name
- Specified by:
adapter_namein interfaceObjectReferenceTemplate
-
getIORFactory
- Specified by:
getIORFactoryin classObjectReferenceProducerBase
-
getIORTemplateList
- Specified by:
getIORTemplateListin classObjectReferenceProducerBase
-