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:
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:
-
Field Summary
FieldsFields inherited from class com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
orb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
_read
(InputStream is) Read the data into a (presumably) empty ObjectReferenceFactoryImpl.String[]
Provides truncatable repository ids._type()
Retrieves theTypeCode
object corresponding to the value in thevalue
field of the Holder.void
_write
(OutputStream os) Write the state to the OutputStream.boolean
int
hashCode()
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 Details
-
iorTemplates
-
repositoryId
- See Also:
-
-
Constructor Details
-
ObjectReferenceFactoryImpl
-
ObjectReferenceFactoryImpl
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
_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
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
Read the data into a (presumably) empty ObjectReferenceFactoryImpl. This sets the orb to the ORB of the InputStream.- Specified by:
_read
in interfaceStreamable
- Parameters:
is
- the InputStream that represents the CDR data from the wire.
-
_write
Write the state to the OutputStream.- Specified by:
_write
in interfaceStreamable
- Parameters:
os
- the CDR OutputStream
-
getIORFactory
- Specified by:
getIORFactory
in classObjectReferenceProducerBase
-
getIORTemplateList
- Specified by:
getIORTemplateList
in classObjectReferenceProducerBase
-