FileDocCategorySizeDatePackage
ObjectReferenceFactoryImpl.javaAPI DocJava SE 5 API3639Fri Aug 26 14:54:24 BST 2005com.sun.corba.se.impl.ior

ObjectReferenceFactoryImpl

public class ObjectReferenceFactoryImpl extends ObjectReferenceProducerBase implements org.omg.CORBA.portable.StreamableValue, org.omg.PortableInterceptor.ObjectReferenceFactory
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.

Fields Summary
private transient com.sun.corba.se.spi.ior.IORTemplateList
iorTemplates
public static final String
repositoryId
Constructors Summary
public ObjectReferenceFactoryImpl(org.omg.CORBA.portable.InputStream is)

	super( (ORB)(is.orb()) ) ;
	_read( is ) ;
    
public ObjectReferenceFactoryImpl(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.ior.IORTemplateList iortemps)

	super( orb ) ;
	iorTemplates = iortemps ;
    
Methods Summary
public void_read(org.omg.CORBA.portable.InputStream is)
Read the data into a (presumably) empty ObjectReferenceFactoryImpl. This sets the orb to the ORB of the InputStream.

	org.omg.CORBA_2_3.portable.InputStream istr = 
	    (org.omg.CORBA_2_3.portable.InputStream)is ;

	iorTemplates = IORFactories.makeIORTemplateList( istr ) ;
    
public java.lang.String[]_truncatable_ids()


       
    
	return new String[] { repositoryId } ;
    
public org.omg.CORBA.TypeCode_type()

	return ObjectReferenceFactoryHelper.type() ;
    
public void_write(org.omg.CORBA.portable.OutputStream os)
Write the state to the OutputStream.

	org.omg.CORBA_2_3.portable.OutputStream ostr = 
	    (org.omg.CORBA_2_3.portable.OutputStream)os ;

	iorTemplates.write( ostr ) ;
    
public booleanequals(java.lang.Object obj)

	if (!(obj instanceof ObjectReferenceFactoryImpl))
	    return false ;

	ObjectReferenceFactoryImpl other = (ObjectReferenceFactoryImpl)obj ;

	return (iorTemplates != null) && 
	    iorTemplates.equals( other.iorTemplates ) ;
    
public com.sun.corba.se.spi.ior.IORFactorygetIORFactory()

	return iorTemplates ;
    
public com.sun.corba.se.spi.ior.IORTemplateListgetIORTemplateList()

	return iorTemplates ;
    
public inthashCode()

	return iorTemplates.hashCode() ;