KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableServer > RequestProcessingPolicyValue


1 package org.omg.PortableServer;
2
3
4 /**
5 * org/omg/PortableServer/RequestProcessingPolicyValue.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
8 * Saturday, February 9, 2008 9:40:03 AM GMT
9 */

10
11
12 /**
13      * The RequestProcessingPolicyValue can have the following
14      * values. USE_ACTIVE_OBJECT_MAP_ONLY - If the Object Id
15      * is not found in the Active Object Map,
16      * an OBJECT_NOT_EXIST exception is returned to the
17      * client. The RETAIN policy is also required.
18      * USE_DEFAULT_SERVANT - If the Object Id is not found in
19      * the Active Object Map or the NON_RETAIN policy is
20      * present, and a default servant has been registered
21      * with the POA using the set_servant operation,
22      * the request is dispatched to the default servant.
23      * USE_SERVANT_MANAGER - If the Object Id is not found
24      * in the Active Object Map or the NON_RETAIN policy
25      * is present, and a servant manager has been registered
26      * with the POA using the set_servant_manager operation,
27      * the servant manager is given the opportunity to
28      * locate a servant or raise an exception.
29      */

30 public class RequestProcessingPolicyValue implements org.omg.CORBA.portable.IDLEntity JavaDoc
31 {
32   private int __value;
33   private static int __size = 3;
34   private static org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc[] __array = new org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc [__size];
35
36   public static final int _USE_ACTIVE_OBJECT_MAP_ONLY = 0;
37   public static final org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc USE_ACTIVE_OBJECT_MAP_ONLY = new org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc(_USE_ACTIVE_OBJECT_MAP_ONLY);
38   public static final int _USE_DEFAULT_SERVANT = 1;
39   public static final org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc USE_DEFAULT_SERVANT = new org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc(_USE_DEFAULT_SERVANT);
40   public static final int _USE_SERVANT_MANAGER = 2;
41   public static final org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc USE_SERVANT_MANAGER = new org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc(_USE_SERVANT_MANAGER);
42
43   public int value ()
44   {
45     return __value;
46   }
47
48   public static org.omg.PortableServer.RequestProcessingPolicyValue JavaDoc from_int (int value)
49   {
50     if (value >= 0 && value < __size)
51       return __array[value];
52     else
53       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
54   }
55
56   protected RequestProcessingPolicyValue (int value)
57   {
58     __value = value;
59     __array[__value] = this;
60   }
61 } // class RequestProcessingPolicyValue
62
Popular Tags