summaryrefslogtreecommitdiff
path: root/org
diff options
context:
space:
mode:
authorAudrius Meskauskas <audriusa@Bioinformatics.org>2005-06-16 20:10:49 +0000
committerAudrius Meskauskas <audriusa@Bioinformatics.org>2005-06-16 20:10:49 +0000
commit3e84c4b50760bc96b8ab8f8c5097325d93b8f106 (patch)
tree18c8f8cdc0a96f1aff06d3e428873f1ef44643d6 /org
parenta6d1f95439217737f562e93e43d975bd7516b128 (diff)
downloadclasspath-3e84c4b50760bc96b8ab8f8c5097325d93b8f106.tar.gz
2005-06-16 Audrius Meskauskas <AudriusA@Bioinformatics.org>
* org/omg/ProtableServer/IdAssignmentPolicyValue.java, org/omg/ProtableServer/IdUniquenessPolicyValue.java, org/omg/ProtableServer/ImplicitActivationPolicyValue.java, org/omg/ProtableServer/LifespanPolicyValue.java, org/omg/ProtableServer/RequestProcessingPolicyValue.java, org/omg/ProtableServer/ServantRetentionPolicyValue.java: New files.
Diffstat (limited to 'org')
-rw-r--r--org/omg/PortableServer/IdAssignmentPolicyValue.java154
-rw-r--r--org/omg/PortableServer/IdUniquenessPolicyValue.java154
-rw-r--r--org/omg/PortableServer/ImplicitActivationPolicyValue.java154
-rw-r--r--org/omg/PortableServer/LifespanPolicyValue.java151
-rw-r--r--org/omg/PortableServer/RequestProcessingPolicyValue.java176
-rw-r--r--org/omg/PortableServer/ServantRetentionPolicyValue.java151
6 files changed, 940 insertions, 0 deletions
diff --git a/org/omg/PortableServer/IdAssignmentPolicyValue.java b/org/omg/PortableServer/IdAssignmentPolicyValue.java
new file mode 100644
index 000000000..14c0b5cca
--- /dev/null
+++ b/org/omg/PortableServer/IdAssignmentPolicyValue.java
@@ -0,0 +1,154 @@
+/* IdAssignmentPolicyValue.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.PortableServer;
+
+import org.omg.CORBA.BAD_OPERATION;
+import org.omg.CORBA.portable.IDLEntity;
+
+import java.io.Serializable;
+
+/**
+* Specifies the Object Id assignment policy.
+* <ul>
+* <li>USER_ID Objects created with that POA obtain they Object Ids from the
+* application.
+* </li>
+* <li>SYSTEM_ID Objects created with that POA obtain they Object Ids from POA.
+* If the POA also has the PERSISTENT policy, these Object Ids must be
+* unique across all instantiations of the same POA.
+* </li>
+* </ul>
+* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+*/
+public class IdAssignmentPolicyValue
+ implements Serializable, IDLEntity
+{
+ /**
+ * Use serialVersionUID (V1.4) for interoperability.
+ */
+ private static final long serialVersionUID = 2024380631469554382L;
+
+ /**
+ * The value field for the current instance.
+ */
+ private final int _value;
+
+ /**
+ * The possible value of this enumeration (USER_ID).
+ */
+ public static final int _USER_ID = 0;
+
+ /**
+ * An instance of IdAssignmentPolicyValue, initialized to USER_ID.
+ */
+ public static final IdAssignmentPolicyValue USER_ID =
+ new IdAssignmentPolicyValue(_USER_ID);
+
+ /**
+ * The possible value of this enumeration (SYSTEM_ID),.
+ */
+ public static final int _SYSTEM_ID = 1;
+
+ /**
+ * An instance of IdAssignmentPolicyValue, initialized to SYSTEM_ID,
+ * indicating, that the objects created with that POA obtain they
+ * Object Ids from POA.
+ */
+ public static final IdAssignmentPolicyValue SYSTEM_ID =
+ new IdAssignmentPolicyValue(_SYSTEM_ID);
+
+ /**
+ * The private array that maps integer codes to the enumeration
+ * values.
+ */
+ private static final IdAssignmentPolicyValue[] enume =
+ new IdAssignmentPolicyValue[] { USER_ID, SYSTEM_ID };
+
+ /**
+ * The private array of state names.
+ */
+ private static final String[] state_names =
+ new String[] { "USER_ID", "SYSTEM_ID" };
+
+ /**
+ * Normally, no new instances are required, so the constructor is protected.
+ */
+ protected IdAssignmentPolicyValue(int a_value)
+ {
+ _value = a_value;
+ }
+
+ /**
+ * Returns the IdAssignmentPolicyValue, matching the given integer constant.
+ *
+ * @param code one of _USER_ID, _SYSTEM_ID.
+ * @return one of USER_ID, SYSTEM_ID.
+ * @throws BAD_PARAM if the parameter is not one of the valid values.
+ */
+ public static IdAssignmentPolicyValue from_int(int code)
+ {
+ try
+ {
+ return enume [ code ];
+ }
+ catch (ArrayIndexOutOfBoundsException ex)
+ {
+ throw new BAD_OPERATION("Invalid enumeration code " + code);
+ }
+ }
+
+ /**
+ * Returns a short string representation.
+ * @return the name of the current enumeration value.
+ */
+ public String toString()
+ {
+ return state_names [ _value ];
+ }
+
+ /**
+ * Returns the value, representing the completion
+ * status of this object.
+ * @return one of USER_ID, SYSTEM_ID.
+ */
+ public int value()
+ {
+ return _value;
+ }
+} \ No newline at end of file
diff --git a/org/omg/PortableServer/IdUniquenessPolicyValue.java b/org/omg/PortableServer/IdUniquenessPolicyValue.java
new file mode 100644
index 000000000..fc3906b76
--- /dev/null
+++ b/org/omg/PortableServer/IdUniquenessPolicyValue.java
@@ -0,0 +1,154 @@
+/* IdUniquenessPolicyValue.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.PortableServer;
+
+import org.omg.CORBA.BAD_OPERATION;
+import org.omg.CORBA.portable.IDLEntity;
+
+import java.io.Serializable;
+
+/**
+* Specifies the Object Id uniqueness policy.
+*
+* This enumeration can obtain the following values:
+* <ul>
+* <li>UNIQUE_ID a servant activated with that POA supports exactly one Object Id.
+* </li>
+* <li>MULTIPLE_ID a servant activated with that POA supports
+* multiple Object Ids.
+* </li>
+* </ul>
+* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+*/
+public class IdUniquenessPolicyValue
+ implements Serializable, IDLEntity
+{
+ /**
+ * Use serialVersionUID (V1.4) for interoperability.
+ */
+ private static final long serialVersionUID = 2698951826884611346L;
+
+ /**
+ * The value field for the current instance.
+ */
+ private final int _value;
+
+ /**
+ * The possible value of this enumeration (UNIQUE_ID).
+ */
+ public static final int _UNIQUE_ID = 0;
+
+ /**
+ * Indicates that a servant activated with that POA, supports one and only
+ * one OBject Id.
+ */
+ public static final IdUniquenessPolicyValue UNIQUE_ID =
+ new IdUniquenessPolicyValue(_UNIQUE_ID);
+
+ /**
+ * The possible value of this enumeration (MULTIPLE_ID).
+ */
+ public static final int _MULTIPLE_ID = 1;
+
+ /**
+ * Indicates that a servant activated with that POA is able to support the
+ * multiple Object Ids.
+ */
+ public static final IdUniquenessPolicyValue MULTIPLE_ID =
+ new IdUniquenessPolicyValue(_MULTIPLE_ID);
+
+ /**
+ * The private array that maps integer codes to the enumeration
+ * values.
+ */
+ private static final IdUniquenessPolicyValue[] enume =
+ new IdUniquenessPolicyValue[] { UNIQUE_ID, MULTIPLE_ID };
+
+ /**
+ * The private array of state names.
+ */
+ private static final String[] state_names =
+ new String[] { "UNIQUE_ID", "MULTIPLE_ID" };
+
+ /**
+ * Normally, no new instances are required, so the constructor is protected.
+ */
+ protected IdUniquenessPolicyValue(int a_value)
+ {
+ _value = a_value;
+ }
+
+ /**
+ * Returns the IdUniquenessPolicyValue, matching the given integer constant.
+ *
+ * @param code one of _UNIQUE_ID, _MULTIPLE_ID.
+ * @return one of UNIQUE_ID, MULTIPLE_ID.
+ * @throws BAD_PARAM if the parameter is not one of the valid values.
+ */
+ public static IdUniquenessPolicyValue from_int(int code)
+ {
+ try
+ {
+ return enume [ code ];
+ }
+ catch (ArrayIndexOutOfBoundsException ex)
+ {
+ throw new BAD_OPERATION("Invalid enumeration code " + code);
+ }
+ }
+
+ /**
+ * Returns a short string representation.
+ * @return the name of the current enumeration value.
+ */
+ public String toString()
+ {
+ return state_names [ _value ];
+ }
+
+ /**
+ * Returns the value, representing the completion
+ * status of this object.
+ * @return one of UNIQUE_ID, MULTIPLE_ID.
+ */
+ public int value()
+ {
+ return _value;
+ }
+} \ No newline at end of file
diff --git a/org/omg/PortableServer/ImplicitActivationPolicyValue.java b/org/omg/PortableServer/ImplicitActivationPolicyValue.java
new file mode 100644
index 000000000..1493032b3
--- /dev/null
+++ b/org/omg/PortableServer/ImplicitActivationPolicyValue.java
@@ -0,0 +1,154 @@
+/* ImplicitActivationPolicyValue.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.PortableServer;
+
+import org.omg.CORBA.BAD_OPERATION;
+import org.omg.CORBA.portable.IDLEntity;
+
+import java.io.Serializable;
+
+/**
+* Specifies the implicit activation policy.
+*
+* This enumeration can obtain the following values:
+* <ul>
+* <li>IMPLICIT_ACTIVATION The POA supports implicit activation of servants.
+* ({@link IdAssignmentPolicyValue#SYSTEM_ID} and
+* {@link ServantRetentionPolicyValue#RETAIN} policies required).</li>
+* <li>NO_IMPLICIT_ACTIVATION The POA does not support implicit activation.</li>
+* </ul>
+* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+*/
+public class ImplicitActivationPolicyValue
+ implements Serializable, IDLEntity
+{
+ /**
+ * Use serialVersionUID (V1.4) for interoperability.
+ */
+ private static final long serialVersionUID = 3826572456602949295L;
+
+ /**
+ * The value field for the current instance.
+ */
+ private final int _value;
+
+ /**
+ * The possible value of this enumeration (IMPLICIT_ACTIVATION).
+ */
+ public static final int _IMPLICIT_ACTIVATION = 0;
+
+ /**
+ * An instance of ImplicitActivationPolicyValue, initialized to IMPLICIT_ACTIVATION.
+ */
+ public static final ImplicitActivationPolicyValue IMPLICIT_ACTIVATION =
+ new ImplicitActivationPolicyValue(_IMPLICIT_ACTIVATION);
+
+ /**
+ * The possible value of this enumeration (NO_IMPLICIT_ACTIVATION).
+ */
+ public static final int _NO_IMPLICIT_ACTIVATION = 1;
+
+ /**
+ * An instance of ImplicitActivationPolicyValue, initialized to NO_IMPLICIT_ACTIVATION.
+ */
+ public static final ImplicitActivationPolicyValue NO_IMPLICIT_ACTIVATION =
+ new ImplicitActivationPolicyValue(_NO_IMPLICIT_ACTIVATION);
+
+ /**
+ * The private array that maps integer codes to the enumeration
+ * values.
+ */
+ private static final ImplicitActivationPolicyValue[] enume =
+ new ImplicitActivationPolicyValue[]
+ {
+ IMPLICIT_ACTIVATION, NO_IMPLICIT_ACTIVATION
+ };
+
+ /**
+ * The private array of state names.
+ */
+ private static final String[] state_names =
+ new String[] { "IMPLICIT_ACTIVATION", "NO_IMPLICIT_ACTIVATION" };
+
+ /**
+ * Normally, no new instances are required, so the constructor is protected.
+ */
+ protected ImplicitActivationPolicyValue(int a_value)
+ {
+ _value = a_value;
+ }
+
+ /**
+ * Returns the ImplicitActivationPolicyValue, matching the given integer constant.
+ *
+ * @param code one of _IMPLICIT_ACTIVATION, _NO_IMPLICIT_ACTIVATION.
+ * @return one of IMPLICIT_ACTIVATION, NO_IMPLICIT_ACTIVATION.
+ * @throws BAD_PARAM if the parameter is not one of the valid values.
+ */
+ public static ImplicitActivationPolicyValue from_int(int code)
+ {
+ try
+ {
+ return enume [ code ];
+ }
+ catch (ArrayIndexOutOfBoundsException ex)
+ {
+ throw new BAD_OPERATION("Invalid enumeration code " + code);
+ }
+ }
+
+ /**
+ * Returns a short string representation.
+ * @return the name of the current enumeration value.
+ */
+ public String toString()
+ {
+ return state_names [ _value ];
+ }
+
+ /**
+ * Returns the value, representing the completion
+ * status of this object.
+ * @return one of IMPLICIT_ACTIVATION, NO_IMPLICIT_ACTIVATION.
+ */
+ public int value()
+ {
+ return _value;
+ }
+} \ No newline at end of file
diff --git a/org/omg/PortableServer/LifespanPolicyValue.java b/org/omg/PortableServer/LifespanPolicyValue.java
new file mode 100644
index 000000000..fb0790f35
--- /dev/null
+++ b/org/omg/PortableServer/LifespanPolicyValue.java
@@ -0,0 +1,151 @@
+/* LifespanPolicyValue.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.PortableServer;
+
+import org.omg.CORBA.BAD_OPERATION;
+import org.omg.CORBA.portable.IDLEntity;
+
+import java.io.Serializable;
+
+/**
+* Specifies the object life span policy.
+*
+* This enumeration can obtain the following values:
+* <ul>
+* <li>TRANSIENT The objects implemented in the POA never outlive
+* the POA instance in which they are first created.</li>
+* <li>PERSISTENT The mentioned objects can outlive the process in
+* which they are first created.</li>
+* </ul>
+* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+*/
+public class LifespanPolicyValue
+ implements Serializable, IDLEntity
+{
+ /**
+ * Use serialVersionUID (V1.4) for interoperability.
+ */
+ private static final long serialVersionUID = 6604562925399671611L;
+
+ /**
+ * The value field for the current instance.
+ */
+ private final int _value;
+
+ /**
+ * The possible value of this enumeration (TRANSIENT).
+ */
+ public static final int _TRANSIENT = 0;
+
+ /**
+ * An instance of LifespanPolicyValue, initialized to TRANSIENT.
+ */
+ public static final LifespanPolicyValue TRANSIENT =
+ new LifespanPolicyValue(_TRANSIENT);
+
+ /**
+ * The possible value of this enumeration (PERSISTENT).
+ */
+ public static final int _PERSISTENT = 1;
+
+ /**
+ * An instance of LifespanPolicyValue, initialized to PERSISTENT.
+ */
+ public static final LifespanPolicyValue PERSISTENT =
+ new LifespanPolicyValue(_PERSISTENT);
+
+ /**
+ * The private array that maps integer codes to the enumeration
+ * values.
+ */
+ private static final LifespanPolicyValue[] enume =
+ new LifespanPolicyValue[] { TRANSIENT, PERSISTENT };
+
+ /**
+ * The private array of state names.
+ */
+ private static final String[] state_names =
+ new String[] { "TRANSIENT", "PERSISTENT" };
+
+ /**
+ * Normally, no new instances are required, so the constructor is protected.
+ */
+ protected LifespanPolicyValue(int a_value)
+ {
+ _value = a_value;
+ }
+
+ /**
+ * Returns the LifespanPolicyValue, matching the given integer constant.
+ *
+ * @param code one of _TRANSIENT, _PERSISTENT.
+ * @return one of TRANSIENT, PERSISTENT.
+ * @throws BAD_PARAM if the parameter is not one of the valid values.
+ */
+ public static LifespanPolicyValue from_int(int code)
+ {
+ try
+ {
+ return enume [ code ];
+ }
+ catch (ArrayIndexOutOfBoundsException ex)
+ {
+ throw new BAD_OPERATION("Invalid enumeration code " + code);
+ }
+ }
+
+ /**
+ * Returns a short string representation.
+ * @return the name of the current enumeration value.
+ */
+ public String toString()
+ {
+ return state_names [ _value ];
+ }
+
+ /**
+ * Returns the value, representing the completion
+ * status of this object.
+ * @return one of TRANSIENT, PERSISTENT.
+ */
+ public int value()
+ {
+ return _value;
+ }
+} \ No newline at end of file
diff --git a/org/omg/PortableServer/RequestProcessingPolicyValue.java b/org/omg/PortableServer/RequestProcessingPolicyValue.java
new file mode 100644
index 000000000..f95f95dd4
--- /dev/null
+++ b/org/omg/PortableServer/RequestProcessingPolicyValue.java
@@ -0,0 +1,176 @@
+/* RequestProcessingPolicyValue.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.PortableServer;
+
+import org.omg.CORBA.BAD_OPERATION;
+import org.omg.CORBA.portable.IDLEntity;
+
+import java.io.Serializable;
+
+/**
+* Specifies the behaviour in the case when the
+* requested object is not found in the Active Object Map or that map
+* is not in use. The map is not in use when the
+* {@link ServantRetentionPolicyValue#NON_RETAIN} policy is active.
+* <ul>
+* <li>USE_ACTIVE_OBJECT_MAP_ONLY Raise an {@link org.omg.CORBA.OBJECT_NOT_EXIST}
+* with the minor code 2. {@link ServantRetentionPolicyValue#RETAIN} policy is
+* also required.
+* </li>
+* <li>USE_DEFAULT_SERVANT Dispatch request to the default servant. If no such
+* exists, raise {@link org.omg.CORBA.OBJ_ADAPTER} with minor code 3.
+* {@link IdUniquenessPolicyValue#MULTIPLE_ID} is also required.
+* </li>
+* <li>USE_SERVANT_MANAGER Dispatch request to the servant manager. If no such
+* exists, raise {@link org.omg.CORBA.OBJ_ADAPTER} with the minor code 4.</li>
+* </ul>
+*
+* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+*/
+public class RequestProcessingPolicyValue
+ implements Serializable, IDLEntity
+{
+ /**
+ * Use serialVersionUID (V1.4) for interoperability.
+ */
+ private static final long serialVersionUID = 7646563512329907695L;
+
+ /**
+ * The value field for the current instance.
+ */
+ private final int _value;
+
+ /**
+ * The possible value of this enumeration (USE_ACTIVE_OBJECT_MAP_ONLY).
+ */
+ public static final int _USE_ACTIVE_OBJECT_MAP_ONLY = 0;
+
+ /**
+ * An instance of RequestProcessingPolicyValue, initialized to USE_ACTIVE_OBJECT_MAP_ONLY.
+ */
+ public static final RequestProcessingPolicyValue USE_ACTIVE_OBJECT_MAP_ONLY =
+ new RequestProcessingPolicyValue(_USE_ACTIVE_OBJECT_MAP_ONLY);
+
+ /**
+ * The possible value of this enumeration (USE_DEFAULT_SERVANT).
+ */
+ public static final int _USE_DEFAULT_SERVANT = 1;
+
+ /**
+ * An instance of RequestProcessingPolicyValue, initialized to USE_DEFAULT_SERVANT.
+ */
+ public static final RequestProcessingPolicyValue USE_DEFAULT_SERVANT =
+ new RequestProcessingPolicyValue(_USE_DEFAULT_SERVANT);
+
+ /**
+ * The possible value of this enumeration (USE_SERVANT_MANAGER).
+ */
+ public static final int _USE_SERVANT_MANAGER = 2;
+
+ /**
+ * An instance of RequestProcessingPolicyValue, initialized to USE_SERVANT_MANAGER.
+ */
+ public static final RequestProcessingPolicyValue USE_SERVANT_MANAGER =
+ new RequestProcessingPolicyValue(_USE_SERVANT_MANAGER);
+
+ /**
+ * The private array that maps integer codes to the enumeration
+ * values.
+ */
+ private static final RequestProcessingPolicyValue[] enume =
+ new RequestProcessingPolicyValue[]
+ {
+ USE_ACTIVE_OBJECT_MAP_ONLY, USE_DEFAULT_SERVANT, USE_SERVANT_MANAGER
+ };
+
+ /**
+ * The private array of state names.
+ */
+ private static final String[] state_names =
+ new String[]
+ {
+ "USE_ACTIVE_OBJECT_MAP_ONLY", "USE_DEFAULT_SERVANT", "USE_SERVANT_MANAGER"
+ };
+
+ /**
+ * Normally, no new instances are required, so the constructor is protected.
+ */
+ protected RequestProcessingPolicyValue(int a_value)
+ {
+ _value = a_value;
+ }
+
+ /**
+ * Returns the RequestProcessingPolicyValue, matching the given integer constant.
+ *
+ * @param code one of _USE_ACTIVE_OBJECT_MAP_ONLY, _USE_DEFAULT_SERVANT, _USE_SERVANT_MANAGER.
+ * @return one of USE_ACTIVE_OBJECT_MAP_ONLY, USE_DEFAULT_SERVANT, USE_SERVANT_MANAGER.
+ * @throws BAD_PARAM if the parameter is not one of the valid values.
+ */
+ public static RequestProcessingPolicyValue from_int(int code)
+ {
+ try
+ {
+ return enume [ code ];
+ }
+ catch (ArrayIndexOutOfBoundsException ex)
+ {
+ throw new BAD_OPERATION("Invalid enumeration code " + code);
+ }
+ }
+
+ /**
+ * Returns a short string representation.
+ * @return the name of the current enumeration value.
+ */
+ public String toString()
+ {
+ return state_names [ _value ];
+ }
+
+ /**
+ * Returns the value, representing the completion
+ * status of this object.
+ * @return one of USE_ACTIVE_OBJECT_MAP_ONLY, USE_DEFAULT_SERVANT, USE_SERVANT_MANAGER.
+ */
+ public int value()
+ {
+ return _value;
+ }
+} \ No newline at end of file
diff --git a/org/omg/PortableServer/ServantRetentionPolicyValue.java b/org/omg/PortableServer/ServantRetentionPolicyValue.java
new file mode 100644
index 000000000..76a16b6f7
--- /dev/null
+++ b/org/omg/PortableServer/ServantRetentionPolicyValue.java
@@ -0,0 +1,151 @@
+/* ServantRetentionPolicyValue.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.PortableServer;
+
+import org.omg.CORBA.BAD_OPERATION;
+import org.omg.CORBA.portable.IDLEntity;
+
+import java.io.Serializable;
+
+/**
+* Specifies the servant retention policy.
+*
+* This enumeration can obtain the following values:
+* <ul>
+* <li>RETAIN The POA retains active servants in its Active Object Map.</li>
+* <li>NON_RETAIN The servants are not retained.</li>
+* </ul>
+* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+*/
+public class ServantRetentionPolicyValue
+ implements Serializable, IDLEntity
+{
+ /**
+ * Use serialVersionUID (V1.4) for interoperability.
+ */
+ private static final long serialVersionUID = -7476100336036943822L;
+
+ /**
+ * The value field for the current instance.
+ */
+ private final int _value;
+
+ /**
+ * The possible value of this enumeration (RETAIN).
+ */
+ public static final int _RETAIN = 0;
+
+ /**
+ * An instance of ServantRetentionPolicyValue, indicating that
+ * the POA retains active servants in its Active Object Map.
+ */
+ public static final ServantRetentionPolicyValue RETAIN =
+ new ServantRetentionPolicyValue(_RETAIN);
+
+ /**
+ * The possible value of this enumeration (NON_RETAIN).
+ */
+ public static final int _NON_RETAIN = 1;
+
+ /**
+ * An instance of ServantRetentionPolicyValue, indicating that
+ * the POA does not use the Active Object Map.
+ */
+ public static final ServantRetentionPolicyValue NON_RETAIN =
+ new ServantRetentionPolicyValue(_NON_RETAIN);
+
+ /**
+ * The private array that maps integer codes to the enumeration
+ * values.
+ */
+ private static final ServantRetentionPolicyValue[] enume =
+ new ServantRetentionPolicyValue[] { RETAIN, NON_RETAIN };
+
+ /**
+ * The private array of state names.
+ */
+ private static final String[] state_names =
+ new String[] { "RETAIN", "NON_RETAIN" };
+
+ /**
+ * Normally, no new instances are required, so the constructor is protected.
+ */
+ protected ServantRetentionPolicyValue(int a_value)
+ {
+ _value = a_value;
+ }
+
+ /**
+ * Returns the ServantRetentionPolicyValue, matching the given integer constant.
+ *
+ * @param code one of _RETAIN, _NON_RETAIN.
+ * @return one of RETAIN, NON_RETAIN.
+ * @throws BAD_PARAM if the parameter is not one of the valid values.
+ */
+ public static ServantRetentionPolicyValue from_int(int code)
+ {
+ try
+ {
+ return enume [ code ];
+ }
+ catch (ArrayIndexOutOfBoundsException ex)
+ {
+ throw new BAD_OPERATION("Invalid enumeration code " + code);
+ }
+ }
+
+ /**
+ * Returns a short string representation.
+ * @return the name of the current enumeration value.
+ */
+ public String toString()
+ {
+ return state_names [ _value ];
+ }
+
+ /**
+ * Returns the value, representing the completion
+ * status of this object.
+ * @return one of RETAIN, NON_RETAIN.
+ */
+ public int value()
+ {
+ return _value;
+ }
+} \ No newline at end of file