FileDocCategorySizeDatePackage
StubWrapper.javaAPI DocJava SE 5 API3375Fri Aug 26 14:54:40 BST 2005com.sun.corba.se.spi.presentation.rmi

StubWrapper

public class StubWrapper extends Object implements DynamicStub
Wrapper that can take any stub (object x such that StubAdapter.isStub(x)) and treat it as a DynamicStub.

Fields Summary
private org.omg.CORBA.Object
object
Constructors Summary
public StubWrapper(org.omg.CORBA.Object object)

	if (!(StubAdapter.isStub(object)))
	    throw new IllegalStateException() ;

	this.object = object ;
    
Methods Summary
public org.omg.CORBA.Request_create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result)

	return object._create_request( ctx, operation, arg_list, result ) ;
    
public org.omg.CORBA.Request_create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result, org.omg.CORBA.ExceptionList exclist, org.omg.CORBA.ContextList ctxlist)

	return object._create_request( ctx, operation, arg_list, result,
	    exclist, ctxlist ) ;
    
public org.omg.CORBA.Object_duplicate()

	return object._duplicate() ;
    
public org.omg.CORBA.DomainManager[]_get_domain_managers()

	return object._get_domain_managers() ;
    
public org.omg.CORBA.Object_get_interface_def()

	return object._get_interface_def() ;
    
public org.omg.CORBA.Policy_get_policy(int policy_type)

	return object._get_policy( policy_type ) ;
    
public int_hash(int maximum)

	return object._hash( maximum ) ;
    
public boolean_is_a(java.lang.String repositoryIdentifier)

	return object._is_a( repositoryIdentifier ) ;
    
public boolean_is_equivalent(org.omg.CORBA.Object other)

	return object._is_equivalent( other ) ;
    
public boolean_non_existent()

	return object._non_existent() ;
    
public void_release()

	object._release() ;
    
public org.omg.CORBA.Request_request(java.lang.String operation)

	return object._request( operation ) ;
    
public org.omg.CORBA.Object_set_policy_override(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)

	return object._set_policy_override( policies, set_add ) ;
    
public voidconnect(org.omg.CORBA.ORB orb)

	StubAdapter.connect( object, (com.sun.corba.se.spi.orb.ORB)orb ) ;
    
public org.omg.CORBA.portable.DelegategetDelegate()

	return StubAdapter.getDelegate( object ) ;
    
public org.omg.CORBA.ORBgetORB()

	return StubAdapter.getORB( object ) ;
    
public java.lang.String[]getTypeIds()

	return StubAdapter.getTypeIds( object ) ;
    
public booleanisLocal()

	return StubAdapter.isLocal( object ) ;
    
public org.omg.CORBA.portable.OutputStreamrequest(java.lang.String operation, boolean responseExpected)

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

	StubAdapter.setDelegate( object, delegate ) ;