FileDocCategorySizeDatePackage
JIDLLocalCRDImpl.javaAPI DocJava SE 5 API1921Fri Aug 26 14:54:30 BST 2005com.sun.corba.se.impl.protocol

JIDLLocalCRDImpl

public class JIDLLocalCRDImpl extends com.sun.corba.se.impl.protocol.LocalClientRequestDispatcherBase

Fields Summary
protected org.omg.CORBA.portable.ServantObject
servant
Constructors Summary
public JIDLLocalCRDImpl(com.sun.corba.se.spi.orb.ORB orb, int scid, com.sun.corba.se.spi.ior.IOR ior)

	super( (com.sun.corba.se.spi.orb.ORB)orb, scid, ior ) ;
    
Methods Summary
public voidservant_postinvoke(org.omg.CORBA.Object self, org.omg.CORBA.portable.ServantObject servant)

	// NO-OP
    
public org.omg.CORBA.portable.ServantObjectservant_preinvoke(org.omg.CORBA.Object self, java.lang.String operation, java.lang.Class expectedType)

	if (!checkForCompatibleServant( servant, expectedType ))
	    return null ;

	return servant;
    
public voidsetServant(java.lang.Object servant)

	if (servant != null && servant instanceof Tie) {
	    this.servant = new ServantObject();
	    this.servant.servant = ((Tie)servant).getTarget();
	} else {
	    this.servant = null;
	}                    
    
public voidunexport()

	// DO NOT set the IOR to null.  (Un)exporting is only concerns
	// the servant not the IOR.  If the ior is set to null then
	// null pointer exceptions happen during an colocated invocation.
	// It is better to let the invocation proceed and get OBJECT_NOT_EXIST
	// from the server side.
	//ior = null;
	servant = null;