FileDocCategorySizeDatePackage
OAInvocationInfo.javaAPI DocJava SE 5 API2985Fri Aug 26 14:54:38 BST 2005com.sun.corba.se.spi.oa

OAInvocationInfo

public class OAInvocationInfo extends org.omg.CORBA.portable.ServantObject
This class is a holder for the information required to implement POACurrent. It is also used for the ServantObject that is returned by _servant_preinvoke calls. This allows us to avoid allocating an extra object on each collocated invocation.

Fields Summary
private Object
servantContainer
private com.sun.corba.se.spi.oa.ObjectAdapter
oa
private byte[]
oid
private org.omg.PortableServer.ServantLocatorPackage.CookieHolder
cookieHolder
private String
operation
private com.sun.corba.se.spi.copyobject.ObjectCopierFactory
factory
Constructors Summary
public OAInvocationInfo(com.sun.corba.se.spi.oa.ObjectAdapter oa, byte[] id)

        this.oa = oa;
        this.oid  = id;
    
public OAInvocationInfo(OAInvocationInfo info, String operation)

	this.servant		= info.servant ;
	this.servantContainer	= info.servantContainer ;
	this.cookieHolder	= info.cookieHolder ;
        this.oa			= info.oa;
        this.oid		= info.oid;
	this.factory		= info.factory ;

	this.operation		= operation;
    
Methods Summary
public org.omg.PortableServer.ServantLocatorPackage.CookieHoldergetCookieHolder()

 
	if (cookieHolder == null)
	    cookieHolder = new CookieHolder() ;

	return cookieHolder; 
    
public com.sun.corba.se.spi.copyobject.ObjectCopierFactorygetCopierFactory()

 return factory; 
public java.lang.StringgetOperation()

 return operation; 
public java.lang.ObjectgetServantContainer()

 return servantContainer ; 
public byte[]id()

 return oid ; 
public com.sun.corba.se.spi.oa.ObjectAdapteroa()

 return oa ; 
public voidsetCopierFactory(com.sun.corba.se.spi.copyobject.ObjectCopierFactory factory)

 this.factory = factory ; 
public voidsetOperation(java.lang.String operation)

 this.operation = operation ; 
public voidsetServant(java.lang.Object servant)

 
	servantContainer = servant ;
	if (servant instanceof Tie)
	    this.servant = ((Tie)servant).getTarget() ;
	else
	    this.servant = servant;