1. /*
  2. * @(#)NotLocalLocalCRDImpl.java 1.11 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.INTERNAL;
  9. import org.omg.CORBA.portable.ServantObject;
  10. import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcher ;
  11. /**
  12. * @author Harold Carr
  13. */
  14. public class NotLocalLocalCRDImpl implements LocalClientRequestDispatcher
  15. {
  16. public boolean useLocalInvocation(org.omg.CORBA.Object self)
  17. {
  18. return false;
  19. }
  20. public boolean is_local(org.omg.CORBA.Object self)
  21. {
  22. return false;
  23. }
  24. public ServantObject servant_preinvoke(org.omg.CORBA.Object self,
  25. String operation,
  26. Class expectedType)
  27. {
  28. // REVISIT: Rewrite rmic.HelloTest and rmic.LocalStubTest
  29. // (which directly call servant_preinvoke)
  30. // then revert to exception again.
  31. return null;
  32. //throw new INTERNAL();
  33. }
  34. public void servant_postinvoke(org.omg.CORBA.Object self,
  35. ServantObject servant)
  36. {
  37. //throw new INTERNAL();
  38. }
  39. }
  40. // End of file.