FileDocCategorySizeDatePackage
DynamicStubImpl.javaAPI DocJava SE 5 API3540Fri Aug 26 14:54:30 BST 2005com.sun.corba.se.impl.presentation.rmi

DynamicStubImpl

public class DynamicStubImpl extends org.omg.CORBA_2_3.portable.ObjectImpl implements Serializable, com.sun.corba.se.spi.presentation.rmi.DynamicStub

Fields Summary
private static final long
serialVersionUID
private String[]
typeIds
private com.sun.corba.se.impl.ior.StubIORImpl
ior
private com.sun.corba.se.spi.presentation.rmi.DynamicStub
self
Constructors Summary
public DynamicStubImpl(String[] typeIds)

	this.typeIds = typeIds ;
	ior = null ;
    
Methods Summary
public java.lang.String[]_ids()

	return typeIds ;
    
public voidconnect(org.omg.CORBA.ORB orb)

	ior = StubConnectImpl.connect( ior, self, this, orb ) ;
    
public org.omg.CORBA.portable.DelegategetDelegate()

	return _get_delegate() ;
    
public org.omg.CORBA.ORBgetORB()

	return (ORB)_orb() ;
    
public com.sun.corba.se.spi.presentation.rmi.DynamicStubgetSelf()

	return self ;
    
public java.lang.String[]getTypeIds()

	return _ids() ;
    
public booleanisLocal()

	return _is_local() ;
    
private voidreadObject(java.io.ObjectInputStream stream)

	ior = new StubIORImpl() ;
	ior.doRead( stream ) ;
    
public java.lang.ObjectreadResolve()

	String repositoryId = ior.getRepositoryId() ;
	String cname = RepositoryId.cache.getId( repositoryId ).getClassName() ; 

	Class cls = null ;

	try {
	    cls = JDKBridge.loadClass( cname, null, null ) ;
	} catch (ClassNotFoundException exc) {
	    // XXX log this
	}

	PresentationManager pm = 
	    com.sun.corba.se.spi.orb.ORB.getPresentationManager() ;
	PresentationManager.ClassData classData = pm.getClassData( cls ) ;
	InvocationHandlerFactoryImpl ihfactory = 
	    (InvocationHandlerFactoryImpl)classData.getInvocationHandlerFactory() ;
	return ihfactory.getInvocationHandler( this ) ;
    
public org.omg.CORBA.portable.OutputStreamrequest(java.lang.String operation, boolean responseExpected)

	return _request( operation, responseExpected ) ; 
    
public voidsetDelegate(org.omg.CORBA.portable.Delegate delegate)

	_set_delegate( delegate ) ;
    
public voidsetSelf(com.sun.corba.se.spi.presentation.rmi.DynamicStub self)

  // The actual DynamicProxy for this stub.

          
    
	// XXX Should probably only allow this once.
	this.self = self ;
    
private voidwriteObject(java.io.ObjectOutputStream stream)

	if (ior == null) 
	    ior = new StubIORImpl( this ) ;
	ior.doWrite( stream ) ;