1. /*
  2. * @(#)MinimalServantCacheLocalCRDImpl.java 1.14 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.impl.protocol ;
  8. import org.omg.CORBA.portable.ServantObject ;
  9. import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory ;
  10. import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcher ;
  11. import com.sun.corba.se.spi.ior.IOR ;
  12. import com.sun.corba.se.spi.oa.OAInvocationInfo ;
  13. import com.sun.corba.se.spi.orb.ORB ;
  14. public class MinimalServantCacheLocalCRDImpl extends ServantCacheLocalCRDBase
  15. {
  16. public MinimalServantCacheLocalCRDImpl( ORB orb, int scid, IOR ior )
  17. {
  18. super( (com.sun.corba.se.spi.orb.ORB)orb, scid, ior ) ;
  19. }
  20. public ServantObject servant_preinvoke( org.omg.CORBA.Object self,
  21. String operation, Class expectedType )
  22. {
  23. OAInvocationInfo cachedInfo = getCachedInfo() ;
  24. if (checkForCompatibleServant( cachedInfo, expectedType ))
  25. return cachedInfo ;
  26. else
  27. return null ;
  28. }
  29. public void servant_postinvoke(org.omg.CORBA.Object self,
  30. ServantObject servantobj)
  31. {
  32. }
  33. }