1. package org.omg.PortableServer;
  2. /**
  3. * org/omg/PortableServer/ServantLocatorPOA.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
  6. * Monday, February 23, 2004 7:03:02 AM GMT
  7. */
  8. /**
  9. * When the POA has the NON_RETAIN policy it uses servant
  10. * managers that are ServantLocators. Because the POA
  11. * knows that the servant returned by this servant
  12. * manager will be used only for a single request,
  13. * it can supply extra information to the servant
  14. * manager's operations and the servant manager's pair
  15. * of operations may be able to cooperate to do
  16. * something different than a ServantActivator.
  17. * When the POA uses the ServantLocator interface,
  18. * immediately after performing the operation invocation
  19. * on the servant returned by preinvoke, the POA will
  20. * invoke postinvoke on the servant manager, passing the
  21. * ObjectId value and the Servant value as parameters
  22. * (among others). This feature may be used to force
  23. * every request for objects associated with a POA to
  24. * be mediated by the servant manager.
  25. */
  26. public abstract class ServantLocatorPOA extends org.omg.PortableServer.Servant
  27. implements org.omg.PortableServer.ServantLocatorOperations, org.omg.CORBA.portable.InvokeHandler
  28. {
  29. // Constructors
  30. private static java.util.Hashtable _methods = new java.util.Hashtable ();
  31. static
  32. {
  33. _methods.put ("preinvoke", new java.lang.Integer (0));
  34. _methods.put ("postinvoke", new java.lang.Integer (1));
  35. }
  36. public org.omg.CORBA.portable.OutputStream _invoke (String $method,
  37. org.omg.CORBA.portable.InputStream in,
  38. org.omg.CORBA.portable.ResponseHandler $rh)
  39. {
  40. throw new org.omg.CORBA.BAD_OPERATION();
  41. } // _invoke
  42. // Type-specific CORBA::Object operations
  43. private static String[] __ids = {
  44. "IDL:omg.org/PortableServer/ServantLocator:1.0",
  45. "IDL:omg.org/PortableServer/ServantManager:1.0"};
  46. public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
  47. {
  48. return (String[])__ids.clone ();
  49. }
  50. public ServantLocator _this()
  51. {
  52. return ServantLocatorHelper.narrow(
  53. super._this_object());
  54. }
  55. public ServantLocator _this(org.omg.CORBA.ORB orb)
  56. {
  57. return ServantLocatorHelper.narrow(
  58. super._this_object(orb));
  59. }
  60. } // class ServantLocatorPOA