1. package org.omg.PortableServer;
  2. /**
  3. * org/omg/PortableServer/RequestProcessingPolicyValue.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. * The RequestProcessingPolicyValue can have the following
  10. * values. USE_ACTIVE_OBJECT_MAP_ONLY - If the Object Id
  11. * is not found in the Active Object Map,
  12. * an OBJECT_NOT_EXIST exception is returned to the
  13. * client. The RETAIN policy is also required.
  14. * USE_DEFAULT_SERVANT - If the Object Id is not found in
  15. * the Active Object Map or the NON_RETAIN policy is
  16. * present, and a default servant has been registered
  17. * with the POA using the set_servant operation,
  18. * the request is dispatched to the default servant.
  19. * USE_SERVANT_MANAGER - If the Object Id is not found
  20. * in the Active Object Map or the NON_RETAIN policy
  21. * is present, and a servant manager has been registered
  22. * with the POA using the set_servant_manager operation,
  23. * the servant manager is given the opportunity to
  24. * locate a servant or raise an exception.
  25. */
  26. public class RequestProcessingPolicyValue implements org.omg.CORBA.portable.IDLEntity
  27. {
  28. private int __value;
  29. private static int __size = 3;
  30. private static org.omg.PortableServer.RequestProcessingPolicyValue[] __array = new org.omg.PortableServer.RequestProcessingPolicyValue [__size];
  31. public static final int _USE_ACTIVE_OBJECT_MAP_ONLY = 0;
  32. public static final org.omg.PortableServer.RequestProcessingPolicyValue USE_ACTIVE_OBJECT_MAP_ONLY = new org.omg.PortableServer.RequestProcessingPolicyValue(_USE_ACTIVE_OBJECT_MAP_ONLY);
  33. public static final int _USE_DEFAULT_SERVANT = 1;
  34. public static final org.omg.PortableServer.RequestProcessingPolicyValue USE_DEFAULT_SERVANT = new org.omg.PortableServer.RequestProcessingPolicyValue(_USE_DEFAULT_SERVANT);
  35. public static final int _USE_SERVANT_MANAGER = 2;
  36. public static final org.omg.PortableServer.RequestProcessingPolicyValue USE_SERVANT_MANAGER = new org.omg.PortableServer.RequestProcessingPolicyValue(_USE_SERVANT_MANAGER);
  37. public int value ()
  38. {
  39. return __value;
  40. }
  41. public static org.omg.PortableServer.RequestProcessingPolicyValue from_int (int value)
  42. {
  43. if (value >= 0 && value < __size)
  44. return __array[value];
  45. else
  46. throw new org.omg.CORBA.BAD_PARAM ();
  47. }
  48. protected RequestProcessingPolicyValue (int value)
  49. {
  50. __value = value;
  51. __array[__value] = this;
  52. }
  53. } // class RequestProcessingPolicyValue