Package com.sun.corba.ee.impl.ior
Class ObjectReferenceFactoryImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
-
- com.sun.corba.ee.impl.ior.ObjectReferenceFactoryImpl
-
- All Implemented Interfaces:
java.io.Serializable,IDLEntity,Streamable,StreamableValue,ValueBase,ObjectReferenceFactory
public class ObjectReferenceFactoryImpl extends ObjectReferenceProducerBase implements ObjectReferenceFactory, StreamableValue
This is an implementation of the ObjectReferenceFactory 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 IORTemplateListiorTemplatesstatic java.lang.StringrepositoryId-
Fields inherited from class com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
orb
-
-
Constructor Summary
Constructors Constructor Description ObjectReferenceFactoryImpl(ORB orb, IORTemplateList iortemps)ObjectReferenceFactoryImpl(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void_read(InputStream is)Read the data into a (presumably) empty ObjectReferenceFactoryImpl.java.lang.String[]_truncatable_ids()Provides truncatable repository ids.TypeCode_type()Retrieves theTypeCodeobject corresponding to the value in thevaluefield of the Holder.void_write(OutputStream os)Write the state to the OutputStream.booleanequals(java.lang.Object obj)IORFactorygetIORFactory()IORTemplateListgetIORTemplateList()inthashCode()-
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
-
iorTemplates
private transient IORTemplateList iorTemplates
-
repositoryId
public static final java.lang.String repositoryId
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectReferenceFactoryImpl
public ObjectReferenceFactoryImpl(InputStream is)
-
ObjectReferenceFactoryImpl
public ObjectReferenceFactoryImpl(ORB orb, IORTemplateList iortemps)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
_truncatable_ids
public java.lang.String[] _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
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
-
_read
public void _read(InputStream is)
Read the data into a (presumably) empty ObjectReferenceFactoryImpl. This sets the orb to the ORB of the InputStream.- Specified by:
_readin interfaceStreamable- Parameters:
is- the InputStream that represents the CDR data from the wire.
-
_write
public void _write(OutputStream os)
Write the state to the OutputStream.- Specified by:
_writein interfaceStreamable- Parameters:
os- the CDR OutputStream
-
getIORFactory
public IORFactory getIORFactory()
- Specified by:
getIORFactoryin classObjectReferenceProducerBase
-
getIORTemplateList
public IORTemplateList getIORTemplateList()
- Specified by:
getIORTemplateListin classObjectReferenceProducerBase
-
-