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:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private IORTemplate
iorTemplate
static java.lang.String
repositoryId
private static long
serialVersionUID
-
Fields inherited from class com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
orb
-
-
Constructor Summary
Constructors Constructor Description ObjectReferenceTemplateImpl(ORB orb, IORTemplate iortemp)
ObjectReferenceTemplateImpl(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_read(InputStream is)
Reads data fromistream
and initalizes thevalue
field of the Holder with the unmarshalled data.java.lang.String[]
_truncatable_ids()
Provides truncatable repository ids.TypeCode
_type()
Retrieves theTypeCode
object corresponding to the value in thevalue
field of the Holder.void
_write(OutputStream os)
Marshals toostream
the value in thevalue
field of the Holder.java.lang.String[]
adapter_name()
boolean
equals(java.lang.Object obj)
IORFactory
getIORFactory()
IORTemplateList
getIORTemplateList()
int
hashCode()
java.lang.String
orb_id()
java.lang.String
server_id()
-
Methods inherited from class com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
make_object
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omg.PortableInterceptor.ObjectReferenceFactory
make_object
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
iorTemplate
private transient IORTemplate iorTemplate
-
repositoryId
public static final java.lang.String repositoryId
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectReferenceTemplateImpl
public ObjectReferenceTemplateImpl(InputStream is)
-
ObjectReferenceTemplateImpl
public ObjectReferenceTemplateImpl(ORB orb, IORTemplate iortemp)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
_truncatable_ids
public java.lang.String[] _truncatable_ids()
Description copied from interface:ValueBase
Provides truncatable repository ids.- Specified by:
_truncatable_ids
in interfaceValueBase
- Returns:
- a String array--list of truncatable repository ids.
-
_type
public TypeCode _type()
Description copied from interface:Streamable
Retrieves theTypeCode
object corresponding to the value in thevalue
field of the Holder.- Specified by:
_type
in interfaceStreamable
- Returns:
- the
TypeCode
object for the value held in the holder
-
_read
public void _read(InputStream is)
Description copied from interface:Streamable
Reads data fromistream
and initalizes thevalue
field of the Holder with the unmarshalled data.- Specified by:
_read
in interfaceStreamable
- Parameters:
is
- the InputStream that represents the CDR data from the wire.
-
_write
public void _write(OutputStream os)
Description copied from interface:Streamable
Marshals toostream
the value in thevalue
field of the Holder.- Specified by:
_write
in interfaceStreamable
- Parameters:
os
- the CDR OutputStream
-
server_id
public java.lang.String server_id()
- Specified by:
server_id
in interfaceObjectReferenceTemplate
-
orb_id
public java.lang.String orb_id()
- Specified by:
orb_id
in interfaceObjectReferenceTemplate
-
adapter_name
public java.lang.String[] adapter_name()
- Specified by:
adapter_name
in interfaceObjectReferenceTemplate
-
getIORFactory
public IORFactory getIORFactory()
- Specified by:
getIORFactory
in classObjectReferenceProducerBase
-
getIORTemplateList
public IORTemplateList getIORTemplateList()
- Specified by:
getIORTemplateList
in classObjectReferenceProducerBase
-
-