feat(jdk8): move files to new folder to avoid resources compiled.

This commit is contained in:
2025-09-07 15:25:52 +08:00
parent 3f0047bf6f
commit 8c35cfb1c0
17415 changed files with 217 additions and 213 deletions

View File

@@ -0,0 +1,21 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/AdapterActivator.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* An adapter activator supplies a POA with the ability
* to create child POAs on demand, as a side-effect of
* receiving a request that names the child POA
* (or one of its children), or when find_POA is called
* with an activate parameter value of TRUE.
*/
public interface AdapterActivator extends AdapterActivatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} // interface AdapterActivator

View File

@@ -0,0 +1,36 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/AdapterActivatorOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* An adapter activator supplies a POA with the ability
* to create child POAs on demand, as a side-effect of
* receiving a request that names the child POA
* (or one of its children), or when find_POA is called
* with an activate parameter value of TRUE.
*/
public interface AdapterActivatorOperations
{
/**
* This operation is invoked when the ORB receives
* a request for an object reference that identifies
* a target POA that does not exist. The ORB invokes
* this operation once for each POA that must be
* created in order for the target POA to exist.
* @param parent indicates the parent POA for the POA
* that needs to be created.
* @param name identifies the name of the POA relative to
* the parent.
* @return returns TRUE if the POA was created or FALSE
* otherwise.
*/
boolean unknown_adapter (org.omg.PortableServer.POA parent, String name);
} // interface AdapterActivatorOperations

View File

@@ -0,0 +1,32 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/Current.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The PortableServer::Current interface, derived from
* CORBA::Current, provides method implementations with
* access to the identity of the object on which the
* method was invoked. The Current interface is provided
* to support servants that implement multiple objects,
* but can be used within the context of POA-dispatched
* method invocations on any servant. To provide location
* transparency, ORBs are required to support use of
* Current in the context of both locally and remotely
* invoked operations. An instance of Current can be
* obtained by the application by issuing the
* CORBA::ORB::resolve_initial_references("POACurrent")
* operation. Thereafter, it can be used within the
* context of a method dispatched by the POA to obtain
* the POA and ObjectId that identify the object on
* which that operation was invoked.
*/
public interface Current extends CurrentOperations, org.omg.CORBA.Current, org.omg.CORBA.portable.IDLEntity
{
} // interface Current

View File

@@ -0,0 +1,113 @@
/*
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.omg.PortableServer;
/**
* org/omg/PortableServer/CurrentHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
* Tuesday, October 23, 2001 1:17:01 PM PDT
*/
/**
* The PortableServer::Current interface, derived from
* CORBA::Current, provides method implementations with
* access to the identity of the object on which the
* method was invoked. The Current interface is provided
* to support servants that implement multiple objects,
* but can be used within the context of POA-dispatched
* method invocations on any servant. To provide location
* transparency, ORBs are required to support use of
* Current in the context of both locally and remotely
* invoked operations. An instance of Current can be
* obtained by the application by issuing the
* CORBA::ORB::resolve_initial_references("POACurrent")
* operation. Thereafter, it can be used within the
* context of a method dispatched by the POA to obtain
* the POA and ObjectId that identify the object on
* which that operation was invoked.
*/
abstract public class CurrentHelper
{
private static String _id = "IDL:omg.org/PortableServer/Current:2.3";
public static void insert (org.omg.CORBA.Any a,
org.omg.PortableServer.Current that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.Current extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (
org.omg.PortableServer.CurrentHelper.id (), "Current");
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.Current read (
org.omg.CORBA.portable.InputStream istream)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static void write (org.omg.CORBA.portable.OutputStream ostream,
org.omg.PortableServer.Current value)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static org.omg.PortableServer.Current narrow (
org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableServer.Current)
return (org.omg.PortableServer.Current)obj;
else if (!obj._is_a (id ()))
throw new org.omg.CORBA.BAD_PARAM ();
return null;
}
}

View File

@@ -0,0 +1,56 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/CurrentOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The PortableServer::Current interface, derived from
* CORBA::Current, provides method implementations with
* access to the identity of the object on which the
* method was invoked. The Current interface is provided
* to support servants that implement multiple objects,
* but can be used within the context of POA-dispatched
* method invocations on any servant. To provide location
* transparency, ORBs are required to support use of
* Current in the context of both locally and remotely
* invoked operations. An instance of Current can be
* obtained by the application by issuing the
* CORBA::ORB::resolve_initial_references("POACurrent")
* operation. Thereafter, it can be used within the
* context of a method dispatched by the POA to obtain
* the POA and ObjectId that identify the object on
* which that operation was invoked.
*/
public interface CurrentOperations extends org.omg.CORBA.CurrentOperations
{
/**
* Returns reference to the POA implementing the
* object in whose context it is called.
*
* @return The poa implementing the object
*
* @exception NoContext is raised when the operation is
* outside the context of a POA-dispatched
* operation
*/
org.omg.PortableServer.POA get_POA () throws org.omg.PortableServer.CurrentPackage.NoContext;
/**
* Returns the ObjectId identifying the object in
* whose context it is called.
*
* @return the ObjectId of the object
*
* @exception NoContext is raised when the operation
* is called outside the context of a POA-dispatched
* operation.
*/
byte[] get_object_id () throws org.omg.PortableServer.CurrentPackage.NoContext;
} // interface CurrentOperations

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.CurrentPackage;
/**
* org/omg/PortableServer/CurrentPackage/NoContext.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class NoContext extends org.omg.CORBA.UserException
{
public NoContext ()
{
super(NoContextHelper.id());
} // ctor
public NoContext (String $reason)
{
super(NoContextHelper.id() + " " + $reason);
} // ctor
} // class NoContext

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.CurrentPackage;
/**
* org/omg/PortableServer/CurrentPackage/NoContextHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class NoContextHelper
{
private static String _id = "IDL:omg.org/PortableServer/Current/NoContext:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.CurrentPackage.NoContext that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.CurrentPackage.NoContext extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.CurrentPackage.NoContextHelper.id (), "NoContext", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.CurrentPackage.NoContext read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.CurrentPackage.NoContext value = new org.omg.PortableServer.CurrentPackage.NoContext ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.CurrentPackage.NoContext value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.omg.PortableServer;
/**
* Allows dynamic handling of object invocations. POA-based DSI
* servants inherit from the
* standard <code>DynamicImplementation</code> class, this class inherits
* from the <code>Servant</code> class. Based on IDL to Java spec.
* CORBA V 2.3.1 ptc/00-01-08.pdf.
*/
abstract public class DynamicImplementation extends Servant {
/**
* Receives requests issued to any CORBA object
* incarnated by the DSI servant and performs the processing
* necessary to execute the request.
* @param request the request issued to the CORBA object.
*/
abstract public void invoke(org.omg.CORBA.ServerRequest request);
}

View File

@@ -0,0 +1,33 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ForwardRequest.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class ForwardRequest extends org.omg.CORBA.UserException
{
public org.omg.CORBA.Object forward_reference = null;
public ForwardRequest ()
{
super(ForwardRequestHelper.id());
} // ctor
public ForwardRequest (org.omg.CORBA.Object _forward_reference)
{
super(ForwardRequestHelper.id());
forward_reference = _forward_reference;
} // ctor
public ForwardRequest (String $reason, org.omg.CORBA.Object _forward_reference)
{
super(ForwardRequestHelper.id() + " " + $reason);
forward_reference = _forward_reference;
} // ctor
} // class ForwardRequest

View File

@@ -0,0 +1,79 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ForwardRequestHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class ForwardRequestHelper
{
private static String _id = "IDL:omg.org/PortableServer/ForwardRequest:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.ForwardRequest that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.ForwardRequest extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [1];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
_tcOf_members0 = org.omg.CORBA.ObjectHelper.type ();
_members0[0] = new org.omg.CORBA.StructMember (
"forward_reference",
_tcOf_members0,
null);
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.ForwardRequestHelper.id (), "ForwardRequest", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.ForwardRequest read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.ForwardRequest value = new org.omg.PortableServer.ForwardRequest ();
// read and discard the repository ID
istream.read_string ();
value.forward_reference = org.omg.CORBA.ObjectHelper.read (istream);
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.ForwardRequest value)
{
// write the repository ID
ostream.write_string (id ());
org.omg.CORBA.ObjectHelper.write (ostream, value.forward_reference);
}
}

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ID_ASSIGNMENT_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface ID_ASSIGNMENT_POLICY_ID
{
/**
* The value representing ID_ASSIGNMENT_POLICY_ID.
*/
public static final int value = (int)(19L);
}

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ID_UNIQUENESS_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface ID_UNIQUENESS_POLICY_ID
{
/**
* The value representing ID_UNIQUENESS_POLICY_ID.
*/
public static final int value = (int)(18L);
}

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IMPLICIT_ACTIVATION_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface IMPLICIT_ACTIVATION_POLICY_ID
{
/**
* The value representing IMPLICIT_ACTIVATION_POLICY_ID.
*/
public static final int value = (int)(20L);
}

View File

@@ -0,0 +1,19 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IdAssignmentPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* IdAssignmentPolicy specifies whether Object Ids in
* the created POA are generated by the application or
* by the ORB. The default is SYSTEM_ID.
*/
public interface IdAssignmentPolicy extends IdAssignmentPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface IdAssignmentPolicy

View File

@@ -0,0 +1,24 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IdAssignmentPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* IdAssignmentPolicy specifies whether Object Ids in
* the created POA are generated by the application or
* by the ORB. The default is SYSTEM_ID.
*/
public interface IdAssignmentPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.IdAssignmentPolicyValue value ();
} // interface IdAssignmentPolicyOperations

View File

@@ -0,0 +1,50 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IdAssignmentPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The IdAssignmentPolicyValue can have the following
* values. USER_ID - Objects created with that POA are
* assigned Object Ids only by the application.
* SYSTEM_ID - Objects created with that POA are
* assigned Object Ids only by the POA. If the POA also
* has the PERSISTENT policy, assigned Object Ids must
* be unique across all instantiations of the same POA.
*/
public class IdAssignmentPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.PortableServer.IdAssignmentPolicyValue[] __array = new org.omg.PortableServer.IdAssignmentPolicyValue [__size];
public static final int _USER_ID = 0;
public static final org.omg.PortableServer.IdAssignmentPolicyValue USER_ID = new org.omg.PortableServer.IdAssignmentPolicyValue(_USER_ID);
public static final int _SYSTEM_ID = 1;
public static final org.omg.PortableServer.IdAssignmentPolicyValue SYSTEM_ID = new org.omg.PortableServer.IdAssignmentPolicyValue(_SYSTEM_ID);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.IdAssignmentPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected IdAssignmentPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class IdAssignmentPolicyValue

View File

@@ -0,0 +1,19 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IdUniquenessPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The IdUniquenessPolicy specifies whether the servants
* activated in the created POA must have unique object i
* identities. The default is UNIQUE_ID.
*/
public interface IdUniquenessPolicy extends IdUniquenessPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface IdUniquenessPolicy

View File

@@ -0,0 +1,24 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IdUniquenessPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The IdUniquenessPolicy specifies whether the servants
* activated in the created POA must have unique object i
* identities. The default is UNIQUE_ID.
*/
public interface IdUniquenessPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.IdUniquenessPolicyValue value ();
} // interface IdUniquenessPolicyOperations

View File

@@ -0,0 +1,48 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/IdUniquenessPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* IdUniquenessPolicyValue can have the following values.
* UNIQUE_ID - Servants activated with that POA support
* exactly one Object Id. MULTIPLE_ID - a servant
* activated with that POA may support one or more
* Object Ids.
*/
public class IdUniquenessPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.PortableServer.IdUniquenessPolicyValue[] __array = new org.omg.PortableServer.IdUniquenessPolicyValue [__size];
public static final int _UNIQUE_ID = 0;
public static final org.omg.PortableServer.IdUniquenessPolicyValue UNIQUE_ID = new org.omg.PortableServer.IdUniquenessPolicyValue(_UNIQUE_ID);
public static final int _MULTIPLE_ID = 1;
public static final org.omg.PortableServer.IdUniquenessPolicyValue MULTIPLE_ID = new org.omg.PortableServer.IdUniquenessPolicyValue(_MULTIPLE_ID);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.IdUniquenessPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected IdUniquenessPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class IdUniquenessPolicyValue

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ImplicitActivationPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* This policy specifies whether implicit activation
* of servants is supported in the created POA.
*/
public interface ImplicitActivationPolicy extends ImplicitActivationPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface ImplicitActivationPolicy

View File

@@ -0,0 +1,23 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ImplicitActivationPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* This policy specifies whether implicit activation
* of servants is supported in the created POA.
*/
public interface ImplicitActivationPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.ImplicitActivationPolicyValue value ();
} // interface ImplicitActivationPolicyOperations

View File

@@ -0,0 +1,50 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ImplicitActivationPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* ImplicitActivationPolicyValue has the following
* semantics.
* IMPLICIT_ACTIVATION to indicate implicit activation
* of servants. This requires SYSTEM_ID and RETAIN
* policies to be set.
* NO_IMPLICIT_ACTIVATION to indicate no implicit
* servant activation.
*/
public class ImplicitActivationPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.PortableServer.ImplicitActivationPolicyValue[] __array = new org.omg.PortableServer.ImplicitActivationPolicyValue [__size];
public static final int _IMPLICIT_ACTIVATION = 0;
public static final org.omg.PortableServer.ImplicitActivationPolicyValue IMPLICIT_ACTIVATION = new org.omg.PortableServer.ImplicitActivationPolicyValue(_IMPLICIT_ACTIVATION);
public static final int _NO_IMPLICIT_ACTIVATION = 1;
public static final org.omg.PortableServer.ImplicitActivationPolicyValue NO_IMPLICIT_ACTIVATION = new org.omg.PortableServer.ImplicitActivationPolicyValue(_NO_IMPLICIT_ACTIVATION);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.ImplicitActivationPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected ImplicitActivationPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class ImplicitActivationPolicyValue

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/LIFESPAN_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface LIFESPAN_POLICY_ID
{
/**
* The value representing LIFESPAN_POLICY_ID.
*/
public static final int value = (int)(17L);
}

View File

@@ -0,0 +1,19 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/LifespanPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The LifespanPolicy specifies the lifespan of the
* objects implemented in the created POA. The default
* is TRANSIENT.
*/
public interface LifespanPolicy extends LifespanPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface LifespanPolicy

View File

@@ -0,0 +1,24 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/LifespanPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The LifespanPolicy specifies the lifespan of the
* objects implemented in the created POA. The default
* is TRANSIENT.
*/
public interface LifespanPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.LifespanPolicyValue value ();
} // interface LifespanPolicyOperations

View File

@@ -0,0 +1,49 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/LifespanPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The LifespanPolicyValue can have the following values.
* TRANSIENT - The objects implemented in the POA
* cannot outlive the POA instance in which they are
* first created.
* PERSISTENT - The objects implemented in the POA can
* outlive the process in which they are first created.
*/
public class LifespanPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.PortableServer.LifespanPolicyValue[] __array = new org.omg.PortableServer.LifespanPolicyValue [__size];
public static final int _TRANSIENT = 0;
public static final org.omg.PortableServer.LifespanPolicyValue TRANSIENT = new org.omg.PortableServer.LifespanPolicyValue(_TRANSIENT);
public static final int _PERSISTENT = 1;
public static final org.omg.PortableServer.LifespanPolicyValue PERSISTENT = new org.omg.PortableServer.LifespanPolicyValue(_PERSISTENT);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.LifespanPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected LifespanPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class LifespanPolicyValue

View File

@@ -0,0 +1,24 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/POA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* A POA object manages the implementation of a
* collection of objects. The POA supports a name space
* for the objects, which are identified by Object Ids.
* A POA also provides a name space for POAs. A POA is
* created as a child of an existing POA, which forms a
* hierarchy starting with the root POA. A POA object
* must not be exported to other processes, or
* externalized with ORB::object_to_string.
*/
public interface POA extends POAOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} // interface POA

View File

@@ -0,0 +1,101 @@
/*
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.omg.PortableServer;
/**
* org/omg/PortableServer/POAHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
* Tuesday, October 23, 2001 1:16:58 PM PDT
*/
/**
* A POA object manages the implementation of a
* collection of objects. The POA supports a name space
* for the objects, which are identified by Object Ids.
* A POA also provides a name space for POAs. A POA is
* created as a child of an existing POA, which forms a
* hierarchy starting with the root POA. A POA object
* must not be exported to other processes, or
* externalized with ORB::object_to_string.
*/
abstract public class POAHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA:2.3";
public static void insert (org.omg.CORBA.Any a,
org.omg.PortableServer.POA that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POA extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.PortableServer.POAHelper.id (), "POA");
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POA read (
org.omg.CORBA.portable.InputStream istream)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static void write (org.omg.CORBA.portable.OutputStream ostream,
org.omg.PortableServer.POA value)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static org.omg.PortableServer.POA narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableServer.POA)
return (org.omg.PortableServer.POA)obj;
else if (!obj._is_a (id ()))
throw new org.omg.CORBA.BAD_PARAM ();
return null;
}
}

View File

@@ -0,0 +1,20 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/POAManager.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* Each POA object has an associated POAManager object.
* A POA manager may be associated with one or more
* POA objects. A POA manager encapsulates the processing
* state of the POAs it is associated with.
*/
public interface POAManager extends POAManagerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} // interface POAManager

View File

@@ -0,0 +1,78 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/POAManagerOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* Each POA object has an associated POAManager object.
* A POA manager may be associated with one or more
* POA objects. A POA manager encapsulates the processing
* state of the POAs it is associated with.
*/
public interface POAManagerOperations
{
/**
* This operation changes the state of the POA manager
* to active, causing associated POAs to start processing
* requests.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void activate () throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation changes the state of the POA manager
* to holding, causing associated POAs to queue incoming
* requests.
* @param wait_for_completion if FALSE, the operation
* returns immediately after changing state.
* If TRUE, it waits for all active requests
* to complete.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void hold_requests (boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation changes the state of the POA manager
* to discarding. This causes associated POAs to discard
* incoming requests.
* @param wait_for_completion if FALSE, the operation
* returns immediately after changing state.
* If TRUE, it waits for all active requests
* to complete.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void discard_requests (boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation changes the state of the POA manager
* to inactive, causing associated POAs to reject the
* requests that have not begun executing as well as
* as any new requests.
* @param etherealize_objects a flag to indicate whether
* to invoke the etherealize operation of the
* associated servant manager for all active
* objects.
* @param wait_for_completion if FALSE, the operation
* returns immediately after changing state.
* If TRUE, it waits for all active requests
* to complete.
* @exception AdapterInactive is raised if the operation is
* invoked on the POAManager in inactive state.
*/
void deactivate (boolean etherealize_objects, boolean wait_for_completion) throws org.omg.PortableServer.POAManagerPackage.AdapterInactive;
/**
* This operation returns the state of the POA manager.
*/
org.omg.PortableServer.POAManagerPackage.State get_state ();
} // interface POAManagerOperations

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAManagerPackage;
/**
* org/omg/PortableServer/POAManagerPackage/AdapterInactive.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class AdapterInactive extends org.omg.CORBA.UserException
{
public AdapterInactive ()
{
super(AdapterInactiveHelper.id());
} // ctor
public AdapterInactive (String $reason)
{
super(AdapterInactiveHelper.id() + " " + $reason);
} // ctor
} // class AdapterInactive

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAManagerPackage;
/**
* org/omg/PortableServer/POAManagerPackage/AdapterInactiveHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class AdapterInactiveHelper
{
private static String _id = "IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAManagerPackage.AdapterInactive that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAManagerPackage.AdapterInactive extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAManagerPackage.AdapterInactiveHelper.id (), "AdapterInactive", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAManagerPackage.AdapterInactive read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAManagerPackage.AdapterInactive value = new org.omg.PortableServer.POAManagerPackage.AdapterInactive ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAManagerPackage.AdapterInactive value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,48 @@
package org.omg.PortableServer.POAManagerPackage;
/**
* org/omg/PortableServer/POAManagerPackage/State.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* Specifies the states for the POAManager
*/
public class State implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 4;
private static org.omg.PortableServer.POAManagerPackage.State[] __array = new org.omg.PortableServer.POAManagerPackage.State [__size];
public static final int _HOLDING = 0;
public static final org.omg.PortableServer.POAManagerPackage.State HOLDING = new org.omg.PortableServer.POAManagerPackage.State(_HOLDING);
public static final int _ACTIVE = 1;
public static final org.omg.PortableServer.POAManagerPackage.State ACTIVE = new org.omg.PortableServer.POAManagerPackage.State(_ACTIVE);
public static final int _DISCARDING = 2;
public static final org.omg.PortableServer.POAManagerPackage.State DISCARDING = new org.omg.PortableServer.POAManagerPackage.State(_DISCARDING);
public static final int _INACTIVE = 3;
public static final org.omg.PortableServer.POAManagerPackage.State INACTIVE = new org.omg.PortableServer.POAManagerPackage.State(_INACTIVE);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.POAManagerPackage.State from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected State (int value)
{
__value = value;
__array[__value] = this;
}
} // class State

View File

@@ -0,0 +1,467 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/POAOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* A POA object manages the implementation of a
* collection of objects. The POA supports a name space
* for the objects, which are identified by Object Ids.
* A POA also provides a name space for POAs. A POA is
* created as a child of an existing POA, which forms a
* hierarchy starting with the root POA. A POA object
* must not be exported to other processes, or
* externalized with ORB::object_to_string.
*/
public interface POAOperations
{
/**
* This operation creates a new POA as a child of the
* target POA.
* @param adapter_name identifies the new POA with
* respect to other POAs with the same parent POA.
* @param a_POAManager specifies the POA Manager to be
* associated with the new POA.
* @param policies specifies policy objects to be
* associated with the POA to control its behavior.
* @exception AdapterAlreadyExists specifies that the
* target POA already has a child POA with
* the specified name.
* @exception InvalidPolicy is raised if any of the
* policy objects are not valid for the ORB,
* or are in conflict, or require an
* administrative action that has not been
* performed.
*/
org.omg.PortableServer.POA create_POA (String adapter_name, org.omg.PortableServer.POAManager a_POAManager, org.omg.CORBA.Policy[] policies) throws org.omg.PortableServer.POAPackage.AdapterAlreadyExists, org.omg.PortableServer.POAPackage.InvalidPolicy;
/**
* If the target POA is the parent of a child POA with
* the specified name (relative to the target POA), that
* child POA is returned.
* @param adapter_name POA name to be found.
* @param activate_it if a POA with the specified
* name does not exist and the value of
* the activate_it parameter is TRUE, the target
* POA's AdapterActivator, if one exists,
* is invoked.
* @return POA if one exists or is activated by the
* AdapterActivator.
* @return AdapterNonExistent is raised if POA with
* a specified name cannot be found or
* activated using AdapaterActivator.
*/
org.omg.PortableServer.POA find_POA (String adapter_name, boolean activate_it) throws org.omg.PortableServer.POAPackage.AdapterNonExistent;
/**
* This operation destroys the POA and all descendant
* POAs. All descendant POAs are destroyed (recursively)
* before the destruction of the containing POA. The POA
* so destroyed (that is, the POA with its name) may be
* re-created later in the same process.
* @param etherealize_objects flag to indicate whether
* etherealize operation on servant manager needs
* to be called.
* @param wait_for_completion flag to indicate whether
* POA and its children need to wait for active
* requests and the etherealization to complete.
*
*/
void destroy (boolean etherealize_objects, boolean wait_for_completion);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return ThreadPolcy Object
*/
org.omg.PortableServer.ThreadPolicy create_thread_policy (org.omg.PortableServer.ThreadPolicyValue value);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return LifespanPolicy Object.
*/
org.omg.PortableServer.LifespanPolicy create_lifespan_policy (org.omg.PortableServer.LifespanPolicyValue value);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return IdUniquenessPolicy Object.
*/
org.omg.PortableServer.IdUniquenessPolicy create_id_uniqueness_policy (org.omg.PortableServer.IdUniquenessPolicyValue value);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return IdAssignmentPolicy Object.
*/
org.omg.PortableServer.IdAssignmentPolicy create_id_assignment_policy (org.omg.PortableServer.IdAssignmentPolicyValue value);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return ImplicitActivationPolicy Object.
*/
org.omg.PortableServer.ImplicitActivationPolicy create_implicit_activation_policy (org.omg.PortableServer.ImplicitActivationPolicyValue value);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return ServantRetentionPolicy Object.
*/
org.omg.PortableServer.ServantRetentionPolicy create_servant_retention_policy (org.omg.PortableServer.ServantRetentionPolicyValue value);
/**
* These operations each return a reference to a policy
* object with the specified value.
* @param value policy type
* @return RequestProcessingPolicy Object.
*/
org.omg.PortableServer.RequestProcessingPolicy create_request_processing_policy (org.omg.PortableServer.RequestProcessingPolicyValue value);
/**
* This attribute identifies the POA relative to its
* parent. This name is assigned when the POA is created.
*/
String the_name ();
/**
* This attribute identifies the parent of the POA.
* The parent of the root POA is null.
*/
org.omg.PortableServer.POA the_parent ();
/**
* This attribute identifies the current set of all
* child POAs of the POA. The set of child POAs
* includes only the POA's immediate children, and
* not their descendants.
*/
org.omg.PortableServer.POA[] the_children ();
/**
* This attribute identifies the POA manager
* associated with the POA.
*/
org.omg.PortableServer.POAManager the_POAManager ();
/**
* This attribute identifies the adapter activator
* associated with the POA.
*/
org.omg.PortableServer.AdapterActivator the_activator ();
/**
* This attribute identifies the adapter activator
* associated with the POA.
*/
void the_activator (org.omg.PortableServer.AdapterActivator newThe_activator);
/**
*
* If the ServantRetentionPolicy of the POA is RETAIN,
* then the ServantManager argument (imgr) shall support
* the ServantActivator interface. For a NON_RETAIN policy,
* the ServantManager shall support the ServantLocator
* interface. If the argument is nil, or does not support
* the required interface, then the OBJ_ADAPTER
* exception is raised.
* @return ServantManager associated with a POA or null if
* none exists.
* @exception WrongPolicy raised if the
* USE_SERVANT_MANAGER policy is not specified.
*/
org.omg.PortableServer.ServantManager get_servant_manager () throws org.omg.PortableServer.POAPackage.WrongPolicy;
/**
*
* This operation sets the default servant manager
* associated with the POA. This operation may only be
* invoked once after a POA has been created. Attempting
* to set the servant manager after one has already
* been set will result in the BAD_INV_ORDER exception
* being raised.
* @param imgr servant manager to be used as a default.
* @exception WrongPolicy raised if the
* USE_SERVANT_MANAGER policy is not specified.
*/
void set_servant_manager (org.omg.PortableServer.ServantManager imgr) throws org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* This operation returns the default servant associated
* with the POA.
* @return p_servant default servant associated with a POA.
* @exception NoServant raised if no default servant is
* associated with the POA.
* @exception WrongPolicy raised if the
* USE_DEFAULT_SERVANT policy is not specified.
*/
org.omg.PortableServer.Servant get_servant () throws org.omg.PortableServer.POAPackage.NoServant, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
*
* This operation registers the specified servant with
* the POA as the default servant. This servant will
* be used for all requests for which no servant is
* found in the Active Object Map.
* @param p_servant servant to be used as a default.
* @exception WrongPolicy raised if the
* USE_DEFAULT_SERVANT policy is not specified.
*/
void set_servant (org.omg.PortableServer.Servant p_servant) throws org.omg.PortableServer.POAPackage.WrongPolicy;
/**
*
* This operation generates an Object Id and enters
* the Object Id and the specified servant in the
* Active Object Map.
* @param p_servant servant to be associated with an
* object to be activated.
* @return POA generated object id.
* @exception ServantAlreadyActive is raised if the
* POA has UNIQUE_ID policy and servant is
* is already in the Active Object Map.
* @exception WrongPolicy raised if the SYSTEM_ID and
* RETAIN policies are not specified.
*/
byte[] activate_object (org.omg.PortableServer.Servant p_servant) throws org.omg.PortableServer.POAPackage.ServantAlreadyActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* This operation enters an association between the
* specified Object Id and the specified servant in the
* Active Object Map.
* @param id object id for the object to be activated.
* @param p_servant servant to be associated with the
* object.
* @exception ServantAlreadyActive raised if the POA
* has the UNIQUE_ID policy and the servant
* is already in the Active Object Map.
* @exception ObjectAlreadyActive raised if the object is
* already active in the POA.
* @exception WrongPolicy raised if the RETAIN policy is
* is not specified.
*/
void activate_object_with_id (byte[] id, org.omg.PortableServer.Servant p_servant) throws org.omg.PortableServer.POAPackage.ServantAlreadyActive, org.omg.PortableServer.POAPackage.ObjectAlreadyActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
*
* This operation causes the ObjectId specified in the
* oid parameter to be deactivated. An ObjectId which
* has been deactivated continues to process requests
* until there are no active requests for that ObjectId.
* A deactivated ObjectId is removed from the Active
* Object Map when all requests executing for that
* ObjectId have completed.
* @param oid Object Id for the object to be deactivated.
* @exception ObjectNotActive if the object with the
* specified oid is not in the Active Object
* Map.
* @exception WrongPolicy raised if the RETAIN policy is
* is not specified.
*/
void deactivate_object (byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* This operation creates an object reference that
* encapsulates a POA-generated Object Id value and
* the specified interface repository id.
*
* @param intf rep id for creating an object reference.
* @return object reference created using intf.
* @exception WrongPolicy if SYSTEM_ID policy is not
* specified.
*/
org.omg.CORBA.Object create_reference (String intf) throws org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* This operation creates an object reference that
* encapsulates the specified Object Id and interface
* repository Id values. It does not cause an activation
* to take place. The resulting reference may be passed
* to clients, so that subsequent requests on those
* references will cause the object to be activated
* if necessary, or the default servant used, depending
* on the applicable policies.
* @param oid object id for creating an objref
* @param intf rep id for creating an objref
* @return object reference created using oid and intf
* @exception BAD_PARAM is raised if the POA has the
* SYSTEM_ID policy and it detects that the
* Object Id value was not generated by the
* system or for this POA.
*/
org.omg.CORBA.Object create_reference_with_id (byte[] oid, String intf);
/**
* This operation has four possible behaviors.
* 1. If the POA has the UNIQUE_ID policy and the
* specified servant is active, the Object Id associated
* with that servant is returned.
* 2. If the POA has the IMPLICIT_ACTIVATION policy and
* either the POA has the MULTIPLE_ID policy or the
* specified servant is not active, the servant is
* activated using a POA-generated Object Id and the
* Interface Id associated with the servant, and that
* Object Id is returned.
* 3. If the POA has the USE_DEFAULT_SERVANT policy,
* the servant specified is the default servant, and the
* operation is being invoked in the context of executing
* a request on the default servant, then the ObjectId
* associated with the current invocation is returned.
* 4. Otherwise, the ServantNotActive exception is raised.
*
* @param p_servant servant for which the object disi returned.
* @return object id associated with the servant.
* @exception ServantNotActive if the above rules and
* policy combination is not met.
* @exception WrongPolicy if the USE_DEFAULT_SERVANT policy
* or a combination of the RETAIN policy and
* either the UNIQUE_ID or IMPLICIT_ACTIVATION
* policies are not present.
*/
byte[] servant_to_id (org.omg.PortableServer.Servant p_servant) throws org.omg.PortableServer.POAPackage.ServantNotActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* This operation requires the RETAIN policy and either
* the UNIQUE_ID or IMPLICIT_ACTIVATION policies if
* invoked outside the context of an operation dispatched
* by this POA. It has four possible behaviors.
* 1. If the POA has both the RETAIN and the
* UNIQUE_ID policy and the specified servant is active,
* an object reference encapsulating the information used
* to activate the servant is returned.
* 2. If the POA has both the RETAIN and the
* IMPLICIT_ACTIVATION policy and either the POA has the
* MULTIPLE_ID policy or the specified servant is not
* active, the servant is activated using a POA-generated
* Object Id and the Interface Id associated with the
* servant, and a corresponding object reference is
* returned.
* 3. If the operation was invoked in the context of
* executing a request on the specified servant, the
* reference associated with the current invocation
* is returned.
* 4. Otherwise, the ServantNotActive exception is raised.
*
* @param p_servant servant for which the object reference
* needs to be obtained.
* @return object reference associated with the servant.
* @exception WrongPolicy if the operation is not invoked
* in the context of executing a request on
* the specified servant and the required
* policies are not present.
* @exception ServantNotActive if the above specified
* policies and rules are not met.
*/
org.omg.CORBA.Object servant_to_reference (org.omg.PortableServer.Servant p_servant) throws org.omg.PortableServer.POAPackage.ServantNotActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* If the POA has the RETAIN policy and the specified
* object is present in the Active Object Map, this
* operation returns the servant associated with that
* object in the Active Object Map. Otherwise, if the
* POA has the USE_DEFAULT_SERVANT policy and a default
* servant has been registered with the POA, this
* operation returns the default servant. If the object
* reference was not created by this POA,
* the WrongAdapter exception is raised. (OMG Issue
* on inconsistency with the POA.IDL.
*
* @param reference object reference for which the
* servant is returned.
* @return servant associated with the reference.
* @exception WrongPolicy if neither the RETAIN policy or
* the USE_DEFAULT_SERVANT policy is present.
* @exception ObjectNotActive if the servant is not
* present in the Active Object Map (for RETAIN)
* or no default servant is registered (for
* USE_DEFAULT_POLICY).
* @exception WrongAdapter if reference was not created by
* this POA instance.
*/
org.omg.PortableServer.Servant reference_to_servant (org.omg.CORBA.Object reference) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy, org.omg.PortableServer.POAPackage.WrongAdapter;
/**
* This operation returns the Object Id value
* encapsulated by the specified reference. This
* operation is valid only if the reference was created
* by the POA on which the operation is being performed.
* The object denoted by the reference does not have
* to be active for this operation to succeed.
*
* @param reference the object reference from which the
* object id needs to be returned.
* @return object id encapsulated in the reference.
* @exception WrongAdapter if the reference was not
* created by the POA specified in the
* reference.
* @exception WrongPolicy declared to allow future
* extensions.
*
*/
byte[] reference_to_id (org.omg.CORBA.Object reference) throws org.omg.PortableServer.POAPackage.WrongAdapter, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* If the POA has the RETAIN policy and the specified
* ObjectId is in the Active Object Map, this operation
* returns the servant associated with that object in
* the Active Object Map. Otherwise, if the POA has
* the USE_DEFAULT_SERVANT policy and a default servant
* has been registered with the POA, this operation
* returns the default servant.
*
* @param oid object id for the which the servant is
* returned.
* @return servant associated with oid.
* @exception ObjectNotActive is raised if ObjectId is
* is not in the Active Object Map (for RETAIN
* policy), or no default servant is registered
* (for USE_DEFAULT_SERVANT policy).
*
* @exception WrongPolicy is raised if the RETAIN policy
* or the USE_DEFAULT_SERVANT
* policy is not present.
*/
org.omg.PortableServer.Servant id_to_servant (byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* If an object with the specified Object Id value is
* currently active, a reference encapsulating the
* information used to activate the object is returned.
*
* @param oid id of the object for which the
* reference is returned.
* @return the object reference
*
* @exception ObjectNotActive if the Object Id value
* is not active in the POA.
* @exception WrongPolicy if the RETAIN policy is not
* present.
*/
org.omg.CORBA.Object id_to_reference (byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy;
/**
* This returns the unique id of the POA in the process in which it
* is created. It is for use by portable interceptors.
* <p>
* This id is guaranteed unique for the life span of the POA in the
* process. For persistent POAs, this means that if a POA is created
* in the same path with the same name as another POA, these POAs
* are identical and, therefore, have the same id. For transient
* POAs, each POA is unique.
*/
byte[] id ();
} // interface POAOperations

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/AdapterAlreadyExists.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class AdapterAlreadyExists extends org.omg.CORBA.UserException
{
public AdapterAlreadyExists ()
{
super(AdapterAlreadyExistsHelper.id());
} // ctor
public AdapterAlreadyExists (String $reason)
{
super(AdapterAlreadyExistsHelper.id() + " " + $reason);
} // ctor
} // class AdapterAlreadyExists

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class AdapterAlreadyExistsHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.AdapterAlreadyExists that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.AdapterAlreadyExists extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.AdapterAlreadyExistsHelper.id (), "AdapterAlreadyExists", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.AdapterAlreadyExists read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.AdapterAlreadyExists value = new org.omg.PortableServer.POAPackage.AdapterAlreadyExists ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.AdapterAlreadyExists value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/AdapterNonExistent.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class AdapterNonExistent extends org.omg.CORBA.UserException
{
public AdapterNonExistent ()
{
super(AdapterNonExistentHelper.id());
} // ctor
public AdapterNonExistent (String $reason)
{
super(AdapterNonExistentHelper.id() + " " + $reason);
} // ctor
} // class AdapterNonExistent

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class AdapterNonExistentHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.AdapterNonExistent that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.AdapterNonExistent extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.AdapterNonExistentHelper.id (), "AdapterNonExistent", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.AdapterNonExistent read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.AdapterNonExistent value = new org.omg.PortableServer.POAPackage.AdapterNonExistent ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.AdapterNonExistent value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,33 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/InvalidPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class InvalidPolicy extends org.omg.CORBA.UserException
{
public short index = (short)0;
public InvalidPolicy ()
{
super(InvalidPolicyHelper.id());
} // ctor
public InvalidPolicy (short _index)
{
super(InvalidPolicyHelper.id());
index = _index;
} // ctor
public InvalidPolicy (String $reason, short _index)
{
super(InvalidPolicyHelper.id() + " " + $reason);
index = _index;
} // ctor
} // class InvalidPolicy

View File

@@ -0,0 +1,79 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/InvalidPolicyHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class InvalidPolicyHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.InvalidPolicy that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.InvalidPolicy extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [1];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ushort);
_members0[0] = new org.omg.CORBA.StructMember (
"index",
_tcOf_members0,
null);
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.InvalidPolicyHelper.id (), "InvalidPolicy", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.InvalidPolicy read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.InvalidPolicy value = new org.omg.PortableServer.POAPackage.InvalidPolicy ();
// read and discard the repository ID
istream.read_string ();
value.index = istream.read_ushort ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.InvalidPolicy value)
{
// write the repository ID
ostream.write_string (id ());
ostream.write_ushort (value.index);
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/NoServant.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class NoServant extends org.omg.CORBA.UserException
{
public NoServant ()
{
super(NoServantHelper.id());
} // ctor
public NoServant (String $reason)
{
super(NoServantHelper.id() + " " + $reason);
} // ctor
} // class NoServant

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/NoServantHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class NoServantHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/NoServant:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.NoServant that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.NoServant extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.NoServantHelper.id (), "NoServant", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.NoServant read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.NoServant value = new org.omg.PortableServer.POAPackage.NoServant ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.NoServant value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ObjectAlreadyActive.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class ObjectAlreadyActive extends org.omg.CORBA.UserException
{
public ObjectAlreadyActive ()
{
super(ObjectAlreadyActiveHelper.id());
} // ctor
public ObjectAlreadyActive (String $reason)
{
super(ObjectAlreadyActiveHelper.id() + " " + $reason);
} // ctor
} // class ObjectAlreadyActive

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class ObjectAlreadyActiveHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.ObjectAlreadyActive that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.ObjectAlreadyActive extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.ObjectAlreadyActiveHelper.id (), "ObjectAlreadyActive", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.ObjectAlreadyActive read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.ObjectAlreadyActive value = new org.omg.PortableServer.POAPackage.ObjectAlreadyActive ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.ObjectAlreadyActive value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ObjectNotActive.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class ObjectNotActive extends org.omg.CORBA.UserException
{
public ObjectNotActive ()
{
super(ObjectNotActiveHelper.id());
} // ctor
public ObjectNotActive (String $reason)
{
super(ObjectNotActiveHelper.id() + " " + $reason);
} // ctor
} // class ObjectNotActive

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ObjectNotActiveHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class ObjectNotActiveHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.ObjectNotActive that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.ObjectNotActive extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.ObjectNotActiveHelper.id (), "ObjectNotActive", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.ObjectNotActive read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.ObjectNotActive value = new org.omg.PortableServer.POAPackage.ObjectNotActive ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.ObjectNotActive value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ServantAlreadyActive.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class ServantAlreadyActive extends org.omg.CORBA.UserException
{
public ServantAlreadyActive ()
{
super(ServantAlreadyActiveHelper.id());
} // ctor
public ServantAlreadyActive (String $reason)
{
super(ServantAlreadyActiveHelper.id() + " " + $reason);
} // ctor
} // class ServantAlreadyActive

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ServantAlreadyActiveHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class ServantAlreadyActiveHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.ServantAlreadyActive that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.ServantAlreadyActive extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.ServantAlreadyActiveHelper.id (), "ServantAlreadyActive", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.ServantAlreadyActive read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.ServantAlreadyActive value = new org.omg.PortableServer.POAPackage.ServantAlreadyActive ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.ServantAlreadyActive value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ServantNotActive.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class ServantNotActive extends org.omg.CORBA.UserException
{
public ServantNotActive ()
{
super(ServantNotActiveHelper.id());
} // ctor
public ServantNotActive (String $reason)
{
super(ServantNotActiveHelper.id() + " " + $reason);
} // ctor
} // class ServantNotActive

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/ServantNotActiveHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class ServantNotActiveHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/ServantNotActive:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.ServantNotActive that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.ServantNotActive extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.ServantNotActiveHelper.id (), "ServantNotActive", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.ServantNotActive read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.ServantNotActive value = new org.omg.PortableServer.POAPackage.ServantNotActive ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.ServantNotActive value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/WrongAdapter.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class WrongAdapter extends org.omg.CORBA.UserException
{
public WrongAdapter ()
{
super(WrongAdapterHelper.id());
} // ctor
public WrongAdapter (String $reason)
{
super(WrongAdapterHelper.id() + " " + $reason);
} // ctor
} // class WrongAdapter

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/WrongAdapterHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class WrongAdapterHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/WrongAdapter:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.WrongAdapter that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.WrongAdapter extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.WrongAdapterHelper.id (), "WrongAdapter", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.WrongAdapter read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.WrongAdapter value = new org.omg.PortableServer.POAPackage.WrongAdapter ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.WrongAdapter value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/WrongPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public final class WrongPolicy extends org.omg.CORBA.UserException
{
public WrongPolicy ()
{
super(WrongPolicyHelper.id());
} // ctor
public WrongPolicy (String $reason)
{
super(WrongPolicyHelper.id() + " " + $reason);
} // ctor
} // class WrongPolicy

View File

@@ -0,0 +1,72 @@
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/WrongPolicyHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
abstract public class WrongPolicyHelper
{
private static String _id = "IDL:omg.org/PortableServer/POA/WrongPolicy:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.POAPackage.WrongPolicy that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.POAPackage.WrongPolicy extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
private static boolean __active = false;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
synchronized (org.omg.CORBA.TypeCode.class)
{
if (__typeCode == null)
{
if (__active)
{
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
}
__active = true;
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
org.omg.CORBA.TypeCode _tcOf_members0 = null;
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableServer.POAPackage.WrongPolicyHelper.id (), "WrongPolicy", _members0);
__active = false;
}
}
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.POAPackage.WrongPolicy read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.WrongPolicy value = new org.omg.PortableServer.POAPackage.WrongPolicy ();
// read and discard the repository ID
istream.read_string ();
return value;
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.POAPackage.WrongPolicy value)
{
// write the repository ID
ostream.write_string (id ());
}
}

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/REQUEST_PROCESSING_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface REQUEST_PROCESSING_POLICY_ID
{
/**
* The value representing REQUEST_PROCESSING_POLICY_ID.
*/
public static final int value = (int)(22L);
}

View File

@@ -0,0 +1,19 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/RequestProcessingPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* This policy specifies how requests are processed by
* the created POA. The default is
* USE_ACTIVE_OBJECT_MAP_ONLY.
*/
public interface RequestProcessingPolicy extends RequestProcessingPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface RequestProcessingPolicy

View File

@@ -0,0 +1,24 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/RequestProcessingPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* This policy specifies how requests are processed by
* the created POA. The default is
* USE_ACTIVE_OBJECT_MAP_ONLY.
*/
public interface RequestProcessingPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.RequestProcessingPolicyValue value ();
} // interface RequestProcessingPolicyOperations

View File

@@ -0,0 +1,61 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/RequestProcessingPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The RequestProcessingPolicyValue can have the following
* values. USE_ACTIVE_OBJECT_MAP_ONLY - If the Object Id
* is not found in the Active Object Map,
* an OBJECT_NOT_EXIST exception is returned to the
* client. The RETAIN policy is also required.
* USE_DEFAULT_SERVANT - If the Object Id is not found in
* the Active Object Map or the NON_RETAIN policy is
* present, and a default servant has been registered
* with the POA using the set_servant operation,
* the request is dispatched to the default servant.
* USE_SERVANT_MANAGER - If the Object Id is not found
* in the Active Object Map or the NON_RETAIN policy
* is present, and a servant manager has been registered
* with the POA using the set_servant_manager operation,
* the servant manager is given the opportunity to
* locate a servant or raise an exception.
*/
public class RequestProcessingPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 3;
private static org.omg.PortableServer.RequestProcessingPolicyValue[] __array = new org.omg.PortableServer.RequestProcessingPolicyValue [__size];
public static final int _USE_ACTIVE_OBJECT_MAP_ONLY = 0;
public static final org.omg.PortableServer.RequestProcessingPolicyValue USE_ACTIVE_OBJECT_MAP_ONLY = new org.omg.PortableServer.RequestProcessingPolicyValue(_USE_ACTIVE_OBJECT_MAP_ONLY);
public static final int _USE_DEFAULT_SERVANT = 1;
public static final org.omg.PortableServer.RequestProcessingPolicyValue USE_DEFAULT_SERVANT = new org.omg.PortableServer.RequestProcessingPolicyValue(_USE_DEFAULT_SERVANT);
public static final int _USE_SERVANT_MANAGER = 2;
public static final org.omg.PortableServer.RequestProcessingPolicyValue USE_SERVANT_MANAGER = new org.omg.PortableServer.RequestProcessingPolicyValue(_USE_SERVANT_MANAGER);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.RequestProcessingPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected RequestProcessingPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class RequestProcessingPolicyValue

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/SERVANT_RETENTION_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface SERVANT_RETENTION_POLICY_ID
{
/**
* The value representing SERVANT_RETENTION_POLICY_ID.
*/
public static final int value = (int)(21L);
}

View File

@@ -0,0 +1,266 @@
/*
* Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.omg.PortableServer;
import org.omg.CORBA.ORB;
import org.omg.PortableServer.portable.Delegate;
/**
* Defines the native <code>Servant</code> type. In Java, the
* <code>Servant</code> type is mapped to the Java
* <code>org.omg.PortableServer.Servant</code> class.
* It serves as the base class for all POA servant
* implementations and provides a number of methods that may
* be invoked by the application programmer, as well as methods
* which are invoked by the POA itself and may be overridden by
* the user to control aspects of servant behavior.
* Based on IDL to Java spec. (CORBA V2.3.1) ptc/00-01-08.pdf.
*/
abstract public class Servant {
private transient Delegate _delegate = null;
/**
* Gets the ORB vendor-specific implementation of
* <code>PortableServer::Servant</code>.
* @return <code>_delegate</code> the ORB vendor-specific
* implementation of <code>PortableServer::Servant</code>.
*/
final public Delegate _get_delegate() {
if (_delegate == null) {
throw
new
org.omg.CORBA.BAD_INV_ORDER
("The Servant has not been associated with an ORB instance");
}
return _delegate;
}
/**
* Supports the Java ORB portability
* interfaces by providing a method for classes that support
* ORB portability through delegation to set their delegate.
* @param delegate ORB vendor-specific implementation of
* the <code>PortableServer::Servant</code>.
*/
final public void _set_delegate(Delegate delegate) {
_delegate = delegate;
}
/**
* Allows the servant to obtain the object reference for
* the target CORBA object it is incarnating for that request.
* @return <code>this_object</code> <code>Object</code> reference
* associated with the request.
*/
final public org.omg.CORBA.Object _this_object() {
return _get_delegate().this_object(this);
}
/**
* Allows the servant to obtain the object reference for
* the target CORBA Object it is incarnating for that request.
* @param orb ORB with which the servant is associated.
* @return <code>_this_object</code> reference associated with the request.
*/
final public org.omg.CORBA.Object _this_object(ORB orb) {
try {
((org.omg.CORBA_2_3.ORB)orb).set_delegate(this);
}
catch(ClassCastException e) {
throw
new
org.omg.CORBA.BAD_PARAM
("POA Servant requires an instance of org.omg.CORBA_2_3.ORB");
}
return _this_object();
}
/**
* Returns the instance of the ORB
* currently associated with the <code>Servant</code> (convenience method).
* @return <code>orb</code> the instance of the ORB currently
* associated with the <code>Servant</code>.
*/
final public ORB _orb() {
return _get_delegate().orb(this);
}
/**
* Allows easy execution of common methods, equivalent to
* <code>PortableServer::Current:get_POA</code>.
* @return <code>poa</code> POA associated with the servant.
*/
final public POA _poa() {
return _get_delegate().poa(this);
}
/**
* Allows easy execution of
* common methods, equivalent
* to calling <code>PortableServer::Current::get_object_id</code>.
* @return <code>object_id</code> the <code>Object</code> ID associated
* with this servant.
*/
final public byte[] _object_id() {
return _get_delegate().object_id(this);
}
/**
* Returns the
* root POA from the ORB instance associated with the servant.
* Subclasses may override this method to return a different POA.
* @return <code>default_POA</code> the POA associated with the
* <code>Servant</code>.
*/
public POA _default_POA() {
return _get_delegate().default_POA(this);
}
/**
* Checks to see if the specified <code>repository_id</code> is present
* on the list returned by <code>_all_interfaces()</code> or is the
* <code>repository_id</code> for the generic CORBA Object.
* @param repository_id the <code>repository_id</code>
* to be checked in the repository list or against the id
* of generic CORBA objects.
* @return <code>is_a</code> boolean indicating whether the specified
* <code>repository_id</code> is
* in the repository list or is same as a generic CORBA
* object.
*/
public boolean _is_a(String repository_id) {
return _get_delegate().is_a(this, repository_id);
}
/**
* Checks for the existence of an
* <code>Object</code>.
* The <code>Servant</code> provides a default implementation of
* <code>_non_existent()</code> that can be overridden by derived servants.
* @return <code>non_existent</code> <code>true</code> if that object does
* not exist, <code>false</code> otherwise.
*/
public boolean _non_existent() {
return _get_delegate().non_existent(this);
}
// Ken and Simon will ask about editorial changes
// needed in IDL to Java mapping to the following
// signature.
/**
* Returns an object in the Interface Repository
* which provides type information that may be useful to a program.
* <code>Servant</code> provides a default implementation of
* <code>_get_interface()</code>
* that can be overridden by derived servants if the default
* behavior is not adequate.
* @return <code>get_interface</code> type information that corresponds to this servant.
*/
/*
public org.omg.CORBA.Object _get_interface() {
return _get_delegate().get_interface(this);
}
*/
// _get_interface_def() replaces the _get_interface() method
/**
* Returns an <code>InterfaceDef</code> object as a
* <code>CORBA::Object</code> that defines the runtime type of the
* <code>CORBA::Object</code> implemented by the <code>Servant</code>.
* The invoker of <code>_get_interface_def</code>
* must narrow the result to an <code>InterfaceDef</code> in order
* to use it.
* <P>This default implementation of <code>_get_interface_def()</code>
* can be overridden
* by derived servants if the default behavior is not adequate.
* As defined in the CORBA 2.3.1 specification, section 11.3.1, the
* default behavior of <code>_get_interface_def()</code> is to use
* the most derived
* interface of a static servant or the most derived interface retrieved
* from a dynamic servant to obtain the <code>InterfaceDef</code>.
* This behavior must
* be supported by the <code>Delegate</code> that implements the
* <code>Servant</code>.
* @return <code>get_interface_def</code> an <code>InterfaceDef</code>
* object as a
* <code>CORBA::Object</code> that defines the runtime type of the
* <code>CORBA::Object</code> implemented by the <code>Servant</code>.
*/
public org.omg.CORBA.Object _get_interface_def()
{
// First try to call the delegate implementation class's
// "Object get_interface_def(..)" method (will work for ORBs
// whose delegates implement this method).
// Else call the delegate implementation class's
// "InterfaceDef get_interface(..)" method using reflection
// (will work for ORBs that were built using an older version
// of the Delegate interface with a get_interface method
// but not a get_interface_def method).
org.omg.PortableServer.portable.Delegate delegate = _get_delegate();
try {
// If the ORB's delegate class does not implement
// "Object get_interface_def(..)", this will throw
// an AbstractMethodError.
return delegate.get_interface_def(this);
} catch( AbstractMethodError aex ) {
// Call "InterfaceDef get_interface(..)" method using reflection.
try {
Class[] argc = { org.omg.PortableServer.Servant.class };
java.lang.reflect.Method meth =
delegate.getClass().getMethod("get_interface", argc);
Object[] argx = { this };
return (org.omg.CORBA.Object)meth.invoke(delegate, argx);
} catch( java.lang.reflect.InvocationTargetException exs ) {
Throwable t = exs.getTargetException();
if (t instanceof Error) {
throw (Error) t;
} else if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
} catch( RuntimeException rex ) {
throw rex;
} catch( Exception exr ) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
}
}
// methods for which the user must provide an
// implementation
/**
* Used by the ORB to obtain complete type
* information from the servant.
* @param poa POA with which the servant is associated.
* @param objectId is the id corresponding to the object
* associated with this servant.
* @return list of type information for the object.
*/
abstract public String[] _all_interfaces( POA poa, byte[] objectId);
}

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantActivator.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the RETAIN policy it uses servant
* managers that are ServantActivators.
*/
public interface ServantActivator extends ServantActivatorOperations, org.omg.PortableServer.ServantManager, org.omg.CORBA.portable.IDLEntity
{
} // interface ServantActivator

View File

@@ -0,0 +1,90 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantActivatorHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the RETAIN policy it uses servant
* managers that are ServantActivators.
*/
abstract public class ServantActivatorHelper
{
private static String _id = "IDL:omg.org/PortableServer/ServantActivator:2.3";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.ServantActivator that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.ServantActivator extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.PortableServer.ServantActivatorHelper.id (), "ServantActivator");
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.ServantActivator read (org.omg.CORBA.portable.InputStream istream)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.ServantActivator value)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static org.omg.PortableServer.ServantActivator narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableServer.ServantActivator)
return (org.omg.PortableServer.ServantActivator)obj;
else if (!obj._is_a (id ()))
throw new org.omg.CORBA.BAD_PARAM ();
else
{
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
org.omg.PortableServer._ServantActivatorStub stub = new org.omg.PortableServer._ServantActivatorStub ();
stub._set_delegate(delegate);
return stub;
}
}
public static org.omg.PortableServer.ServantActivator unchecked_narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableServer.ServantActivator)
return (org.omg.PortableServer.ServantActivator)obj;
else
{
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
org.omg.PortableServer._ServantActivatorStub stub = new org.omg.PortableServer._ServantActivatorStub ();
stub._set_delegate(delegate);
return stub;
}
}
}

View File

@@ -0,0 +1,60 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantActivatorOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the RETAIN policy it uses servant
* managers that are ServantActivators.
*/
public interface ServantActivatorOperations extends org.omg.PortableServer.ServantManagerOperations
{
/**
* This operation is invoked by the POA whenever the
* POA receives a request for an object that is not
* currently active, assuming the POA has the
* USE_SERVANT_MANAGER and RETAIN policies.
* @param oid object Id associated with the object on
* the request was made.
* @param adapter object reference for the POA in which
* the object is being activated.
* @return Servant corresponding to oid is created or
* located by the user supplied servant manager.
* @exception ForwardRequest to indicate to the ORB
* that it is responsible for delivering
* the current request and subsequent
* requests to the object denoted in the
* forward_reference member of the exception.
*/
org.omg.PortableServer.Servant incarnate (byte[] oid, org.omg.PortableServer.POA adapter) throws org.omg.PortableServer.ForwardRequest;
/**
* This operation is invoked whenever a servant for
* an object is deactivated, assuming the POA has
* the USE_SERVANT_MANAGER and RETAIN policies.
* @param oid object Id associated with the object
* being deactivated.
* @param adapter object reference for the POA in which
* the object was active.
* @param serv contains reference to the servant
* associated with the object being deactivated.
* @param cleanup_in_progress if TRUE indicates that
* destroy or deactivate is called with
* etherealize_objects param of TRUE. FALSE
* indicates that etherealize was called due to
* other reasons.
* @param remaining_activations indicates whether the
* Servant Manager can destroy a servant. If
* set to TRUE, the Servant Manager should wait
* until all invocations in progress have
* completed.
*/
void etherealize (byte[] oid, org.omg.PortableServer.POA adapter, org.omg.PortableServer.Servant serv, boolean cleanup_in_progress, boolean remaining_activations);
} // interface ServantActivatorOperations

View File

@@ -0,0 +1,59 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantActivatorPOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the RETAIN policy it uses servant
* managers that are ServantActivators.
*/
public abstract class ServantActivatorPOA extends org.omg.PortableServer.Servant
implements org.omg.PortableServer.ServantActivatorOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("incarnate", new java.lang.Integer (0));
_methods.put ("etherealize", new java.lang.Integer (1));
}
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
throw new org.omg.CORBA.BAD_OPERATION();
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:omg.org/PortableServer/ServantActivator:2.3",
"IDL:omg.org/PortableServer/ServantManager:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public ServantActivator _this()
{
return ServantActivatorHelper.narrow(
super._this_object());
}
public ServantActivator _this(org.omg.CORBA.ORB orb)
{
return ServantActivatorHelper.narrow(
super._this_object(orb));
}
} // class ServantActivatorPOA

View File

@@ -0,0 +1,32 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantLocator.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the NON_RETAIN policy it uses servant
* managers that are ServantLocators. Because the POA
* knows that the servant returned by this servant
* manager will be used only for a single request,
* it can supply extra information to the servant
* manager's operations and the servant manager's pair
* of operations may be able to cooperate to do
* something different than a ServantActivator.
* When the POA uses the ServantLocator interface,
* immediately after performing the operation invocation
* on the servant returned by preinvoke, the POA will
* invoke postinvoke on the servant manager, passing the
* ObjectId value and the Servant value as parameters
* (among others). This feature may be used to force
* every request for objects associated with a POA to
* be mediated by the servant manager.
*/
public interface ServantLocator extends ServantLocatorOperations, org.omg.PortableServer.ServantManager, org.omg.CORBA.portable.IDLEntity
{
} // interface ServantLocator

View File

@@ -0,0 +1,104 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantLocatorHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the NON_RETAIN policy it uses servant
* managers that are ServantLocators. Because the POA
* knows that the servant returned by this servant
* manager will be used only for a single request,
* it can supply extra information to the servant
* manager's operations and the servant manager's pair
* of operations may be able to cooperate to do
* something different than a ServantActivator.
* When the POA uses the ServantLocator interface,
* immediately after performing the operation invocation
* on the servant returned by preinvoke, the POA will
* invoke postinvoke on the servant manager, passing the
* ObjectId value and the Servant value as parameters
* (among others). This feature may be used to force
* every request for objects associated with a POA to
* be mediated by the servant manager.
*/
abstract public class ServantLocatorHelper
{
private static String _id = "IDL:omg.org/PortableServer/ServantLocator:1.0";
public static void insert (org.omg.CORBA.Any a, org.omg.PortableServer.ServantLocator that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static org.omg.PortableServer.ServantLocator extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.PortableServer.ServantLocatorHelper.id (), "ServantLocator");
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static org.omg.PortableServer.ServantLocator read (org.omg.CORBA.portable.InputStream istream)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableServer.ServantLocator value)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static org.omg.PortableServer.ServantLocator narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableServer.ServantLocator)
return (org.omg.PortableServer.ServantLocator)obj;
else if (!obj._is_a (id ()))
throw new org.omg.CORBA.BAD_PARAM ();
else
{
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
org.omg.PortableServer._ServantLocatorStub stub = new org.omg.PortableServer._ServantLocatorStub ();
stub._set_delegate(delegate);
return stub;
}
}
public static org.omg.PortableServer.ServantLocator unchecked_narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof org.omg.PortableServer.ServantLocator)
return (org.omg.PortableServer.ServantLocator)obj;
else
{
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
org.omg.PortableServer._ServantLocatorStub stub = new org.omg.PortableServer._ServantLocatorStub ();
stub._set_delegate(delegate);
return stub;
}
}
}

View File

@@ -0,0 +1,67 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantLocatorOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the NON_RETAIN policy it uses servant
* managers that are ServantLocators. Because the POA
* knows that the servant returned by this servant
* manager will be used only for a single request,
* it can supply extra information to the servant
* manager's operations and the servant manager's pair
* of operations may be able to cooperate to do
* something different than a ServantActivator.
* When the POA uses the ServantLocator interface,
* immediately after performing the operation invocation
* on the servant returned by preinvoke, the POA will
* invoke postinvoke on the servant manager, passing the
* ObjectId value and the Servant value as parameters
* (among others). This feature may be used to force
* every request for objects associated with a POA to
* be mediated by the servant manager.
*/
public interface ServantLocatorOperations extends org.omg.PortableServer.ServantManagerOperations
{
/**
* This operations is used to get a servant that will be
* used to process the request that caused preinvoke to
* be called.
* @param oid the object id associated with object on
* which the request was made.
* @param adapter the reference for POA in which the
* object is being activated.
* @param operation the operation name.
* @param the_cookie an opaque value that can be set
* by the servant manager to be used
* during postinvoke.
* @return Servant used to process incoming request.
* @exception ForwardRequest to indicate to the ORB
* that it is responsible for delivering
* the current request and subsequent
* requests to the object denoted in the
* forward_reference member of the exception.
*/
org.omg.PortableServer.Servant preinvoke (byte[] oid, org.omg.PortableServer.POA adapter, String operation, org.omg.PortableServer.ServantLocatorPackage.CookieHolder the_cookie) throws org.omg.PortableServer.ForwardRequest;
/**
* This operation is invoked whenener a servant completes
* a request.
* @param oid the object id ssociated with object on which
* the request was made.
* @param adapter the reference for POA in which the
* object was active.
* @param the_cookie an opaque value that contains
* the data set by preinvoke.
* @param the_servant reference to the servant that is
* associated with the object.
*/
void postinvoke (byte[] oid, org.omg.PortableServer.POA adapter, String operation, java.lang.Object the_cookie, org.omg.PortableServer.Servant the_servant);
} // interface ServantLocatorOperations

View File

@@ -0,0 +1,73 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantLocatorPOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the NON_RETAIN policy it uses servant
* managers that are ServantLocators. Because the POA
* knows that the servant returned by this servant
* manager will be used only for a single request,
* it can supply extra information to the servant
* manager's operations and the servant manager's pair
* of operations may be able to cooperate to do
* something different than a ServantActivator.
* When the POA uses the ServantLocator interface,
* immediately after performing the operation invocation
* on the servant returned by preinvoke, the POA will
* invoke postinvoke on the servant manager, passing the
* ObjectId value and the Servant value as parameters
* (among others). This feature may be used to force
* every request for objects associated with a POA to
* be mediated by the servant manager.
*/
public abstract class ServantLocatorPOA extends org.omg.PortableServer.Servant
implements org.omg.PortableServer.ServantLocatorOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("preinvoke", new java.lang.Integer (0));
_methods.put ("postinvoke", new java.lang.Integer (1));
}
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
throw new org.omg.CORBA.BAD_OPERATION();
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:omg.org/PortableServer/ServantLocator:1.0",
"IDL:omg.org/PortableServer/ServantManager:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public ServantLocator _this()
{
return ServantLocatorHelper.narrow(
super._this_object());
}
public ServantLocator _this(org.omg.CORBA.ORB orb)
{
return ServantLocatorHelper.narrow(
super._this_object(orb));
}
} // class ServantLocatorPOA

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 1998, 2000, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.omg.PortableServer.ServantLocatorPackage;
/**
* The native type PortableServer::ServantLocator::Cookie is mapped
* to java.lang.Object. A CookieHolder class is provided for passing
* the Cookie type as an out parameter. The CookieHolder class
* follows exactly the same pattern as the other holder classes
* for basic types.
*/
final public class CookieHolder implements org.omg.CORBA.portable.Streamable
{
public java.lang.Object value;
public CookieHolder() { }
public CookieHolder(java.lang.Object initial) {
value = initial;
}
public void _read( org.omg.CORBA.portable.InputStream is) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
public void _write( org.omg.CORBA.portable.OutputStream os) {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
public org.omg.CORBA.TypeCode _type() {
throw new org.omg.CORBA.NO_IMPLEMENT();
}
}

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantManager.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* A servant manager supplies a POA with the ability
* to activate objects on demand when the POA receives
* a request targeted at an inactive object. A servant
* manager is registered with a POA as a callback object,
* to be invoked by the POA when necessary.
* ServantManagers can either be ServantActivators or
* ServantLocators. A ServantManager object must be
* local to the process containing the POA objects
* it is registered with.
*/
public interface ServantManager extends ServantManagerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
{
} // interface ServantManager

View File

@@ -0,0 +1,25 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantManagerOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* A servant manager supplies a POA with the ability
* to activate objects on demand when the POA receives
* a request targeted at an inactive object. A servant
* manager is registered with a POA as a callback object,
* to be invoked by the POA when necessary.
* ServantManagers can either be ServantActivators or
* ServantLocators. A ServantManager object must be
* local to the process containing the POA objects
* it is registered with.
*/
public interface ServantManagerOperations
{
} // interface ServantManagerOperations

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantRetentionPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* This policy specifies whether the created POA retains
* active servants in an Active Object Map.
*/
public interface ServantRetentionPolicy extends ServantRetentionPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface ServantRetentionPolicy

View File

@@ -0,0 +1,23 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantRetentionPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* This policy specifies whether the created POA retains
* active servants in an Active Object Map.
*/
public interface ServantRetentionPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.ServantRetentionPolicyValue value ();
} // interface ServantRetentionPolicyOperations

View File

@@ -0,0 +1,49 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantRetentionPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* ServantRetentionPolicyValue can have the following
* values. RETAIN - to indicate that the POA will retain
* active servants in its Active Object Map.
* NON_RETAIN - to indicate Servants are not retained by
* the POA. If no ServantRetentionPolicy is specified at
* POA creation, the default is RETAIN.
*/
public class ServantRetentionPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.PortableServer.ServantRetentionPolicyValue[] __array = new org.omg.PortableServer.ServantRetentionPolicyValue [__size];
public static final int _RETAIN = 0;
public static final org.omg.PortableServer.ServantRetentionPolicyValue RETAIN = new org.omg.PortableServer.ServantRetentionPolicyValue(_RETAIN);
public static final int _NON_RETAIN = 1;
public static final org.omg.PortableServer.ServantRetentionPolicyValue NON_RETAIN = new org.omg.PortableServer.ServantRetentionPolicyValue(_NON_RETAIN);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.ServantRetentionPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected ServantRetentionPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class ServantRetentionPolicyValue

View File

@@ -0,0 +1,18 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/THREAD_POLICY_ID.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
public interface THREAD_POLICY_ID
{
/**
* The value representing THREAD_POLICY_ID.
*/
public static final int value = (int)(16L);
}

View File

@@ -0,0 +1,19 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ThreadPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The ThreadPolicy specifies the threading model
* used with the created POA. The default is
* ORB_CTRL_MODEL.
*/
public interface ThreadPolicy extends ThreadPolicyOperations, org.omg.CORBA.Policy, org.omg.CORBA.portable.IDLEntity
{
} // interface ThreadPolicy

View File

@@ -0,0 +1,24 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ThreadPolicyOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The ThreadPolicy specifies the threading model
* used with the created POA. The default is
* ORB_CTRL_MODEL.
*/
public interface ThreadPolicyOperations extends org.omg.CORBA.PolicyOperations
{
/**
* specifies the policy value
*/
org.omg.PortableServer.ThreadPolicyValue value ();
} // interface ThreadPolicyOperations

View File

@@ -0,0 +1,48 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ThreadPolicyValue.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* The ThreadPolicyValue can have the following values.
* ORB_CTRL_MODEL - The ORB is responsible for assigning
* requests for an ORB- controlled POA to threads.
* SINGLE_THREAD_MODEL - Requests for a single-threaded
* POA are processed sequentially.
*/
public class ThreadPolicyValue implements org.omg.CORBA.portable.IDLEntity
{
private int __value;
private static int __size = 2;
private static org.omg.PortableServer.ThreadPolicyValue[] __array = new org.omg.PortableServer.ThreadPolicyValue [__size];
public static final int _ORB_CTRL_MODEL = 0;
public static final org.omg.PortableServer.ThreadPolicyValue ORB_CTRL_MODEL = new org.omg.PortableServer.ThreadPolicyValue(_ORB_CTRL_MODEL);
public static final int _SINGLE_THREAD_MODEL = 1;
public static final org.omg.PortableServer.ThreadPolicyValue SINGLE_THREAD_MODEL = new org.omg.PortableServer.ThreadPolicyValue(_SINGLE_THREAD_MODEL);
public int value ()
{
return __value;
}
public static org.omg.PortableServer.ThreadPolicyValue from_int (int value)
{
if (value >= 0 && value < __size)
return __array[value];
else
throw new org.omg.CORBA.BAD_PARAM ();
}
protected ThreadPolicyValue (int value)
{
__value = value;
__array[__value] = this;
}
} // class ThreadPolicyValue

View File

@@ -0,0 +1,123 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/_ServantActivatorStub.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the RETAIN policy it uses servant
* managers that are ServantActivators.
*/
public class _ServantActivatorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.PortableServer.ServantActivator
{
final public static java.lang.Class _opsClass = ServantActivatorOperations.class;
/**
* This operation is invoked by the POA whenever the
* POA receives a request for an object that is not
* currently active, assuming the POA has the
* USE_SERVANT_MANAGER and RETAIN policies.
* @param oid object Id associated with the object on
* the request was made.
* @param adapter object reference for the POA in which
* the object is being activated.
* @return Servant corresponding to oid is created or
* located by the user supplied servant manager.
* @exception ForwardRequest to indicate to the ORB
* that it is responsible for delivering
* the current request and subsequent
* requests to the object denoted in the
* forward_reference member of the exception.
*/
public org.omg.PortableServer.Servant incarnate (byte[] oid, org.omg.PortableServer.POA adapter) throws org.omg.PortableServer.ForwardRequest
{
org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("incarnate", _opsClass);
ServantActivatorOperations $self = (ServantActivatorOperations) $so.servant;
try {
return $self.incarnate (oid, adapter);
} finally {
_servant_postinvoke ($so);
}
} // incarnate
/**
* This operation is invoked whenever a servant for
* an object is deactivated, assuming the POA has
* the USE_SERVANT_MANAGER and RETAIN policies.
* @param oid object Id associated with the object
* being deactivated.
* @param adapter object reference for the POA in which
* the object was active.
* @param serv contains reference to the servant
* associated with the object being deactivated.
* @param cleanup_in_progress if TRUE indicates that
* destroy or deactivate is called with
* etherealize_objects param of TRUE. FALSE
* indicates that etherealize was called due to
* other reasons.
* @param remaining_activations indicates whether the
* Servant Manager can destroy a servant. If
* set to TRUE, the Servant Manager should wait
* until all invocations in progress have
* completed.
*/
public void etherealize (byte[] oid, org.omg.PortableServer.POA adapter, org.omg.PortableServer.Servant serv, boolean cleanup_in_progress, boolean remaining_activations)
{
org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("etherealize", _opsClass);
ServantActivatorOperations $self = (ServantActivatorOperations) $so.servant;
try {
$self.etherealize (oid, adapter, serv, cleanup_in_progress, remaining_activations);
} finally {
_servant_postinvoke ($so);
}
} // etherealize
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:omg.org/PortableServer/ServantActivator:2.3",
"IDL:omg.org/PortableServer/ServantManager:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
{
String str = s.readUTF ();
com.sun.corba.se.impl.orbutil.IORCheckImpl.check(str, "org.omg.PortableServer._ServantActivatorStub");
String[] args = null;
java.util.Properties props = null;
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
try {
org.omg.CORBA.Object obj = orb.string_to_object (str);
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
_set_delegate (delegate);
} finally {
orb.destroy() ;
}
}
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
{
String[] args = null;
java.util.Properties props = null;
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
try {
String str = orb.object_to_string (this);
s.writeUTF (str);
} finally {
orb.destroy() ;
}
}
} // class _ServantActivatorStub

View File

@@ -0,0 +1,130 @@
package org.omg.PortableServer;
/**
* org/omg/PortableServer/_ServantLocatorStub.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Thursday, July 10, 2025 9:33:00 PM UTC
*/
/**
* When the POA has the NON_RETAIN policy it uses servant
* managers that are ServantLocators. Because the POA
* knows that the servant returned by this servant
* manager will be used only for a single request,
* it can supply extra information to the servant
* manager's operations and the servant manager's pair
* of operations may be able to cooperate to do
* something different than a ServantActivator.
* When the POA uses the ServantLocator interface,
* immediately after performing the operation invocation
* on the servant returned by preinvoke, the POA will
* invoke postinvoke on the servant manager, passing the
* ObjectId value and the Servant value as parameters
* (among others). This feature may be used to force
* every request for objects associated with a POA to
* be mediated by the servant manager.
*/
public class _ServantLocatorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.PortableServer.ServantLocator
{
final public static java.lang.Class _opsClass = ServantLocatorOperations.class;
/**
* This operations is used to get a servant that will be
* used to process the request that caused preinvoke to
* be called.
* @param oid the object id associated with object on
* which the request was made.
* @param adapter the reference for POA in which the
* object is being activated.
* @param operation the operation name.
* @param the_cookie an opaque value that can be set
* by the servant manager to be used
* during postinvoke.
* @return Servant used to process incoming request.
* @exception ForwardRequest to indicate to the ORB
* that it is responsible for delivering
* the current request and subsequent
* requests to the object denoted in the
* forward_reference member of the exception.
*/
public org.omg.PortableServer.Servant preinvoke (byte[] oid, org.omg.PortableServer.POA adapter, String operation, org.omg.PortableServer.ServantLocatorPackage.CookieHolder the_cookie) throws org.omg.PortableServer.ForwardRequest
{
org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("preinvoke", _opsClass);
ServantLocatorOperations $self = (ServantLocatorOperations) $so.servant;
try {
return $self.preinvoke (oid, adapter, operation, the_cookie);
} finally {
_servant_postinvoke ($so);
}
} // preinvoke
/**
* This operation is invoked whenener a servant completes
* a request.
* @param oid the object id ssociated with object on which
* the request was made.
* @param adapter the reference for POA in which the
* object was active.
* @param the_cookie an opaque value that contains
* the data set by preinvoke.
* @param the_servant reference to the servant that is
* associated with the object.
*/
public void postinvoke (byte[] oid, org.omg.PortableServer.POA adapter, String operation, java.lang.Object the_cookie, org.omg.PortableServer.Servant the_servant)
{
org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("postinvoke", _opsClass);
ServantLocatorOperations $self = (ServantLocatorOperations) $so.servant;
try {
$self.postinvoke (oid, adapter, operation, the_cookie, the_servant);
} finally {
_servant_postinvoke ($so);
}
} // postinvoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:omg.org/PortableServer/ServantLocator:1.0",
"IDL:omg.org/PortableServer/ServantManager:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
{
String str = s.readUTF ();
com.sun.corba.se.impl.orbutil.IORCheckImpl.check(str, "org.omg.PortableServer._ServantLocatorStub");
String[] args = null;
java.util.Properties props = null;
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
try {
org.omg.CORBA.Object obj = orb.string_to_object (str);
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
_set_delegate (delegate);
} finally {
orb.destroy() ;
}
}
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
{
String[] args = null;
java.util.Properties props = null;
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
try {
String str = orb.object_to_string (this);
s.writeUTF (str);
} finally {
orb.destroy() ;
}
}
} // class _ServantLocatorStub

View File

@@ -0,0 +1,115 @@
/*
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.omg.PortableServer.portable;
import org.omg.PortableServer.Servant;
import org.omg.PortableServer.POA;
/**
* The portability package contains interfaces and classes
* that are designed for and intended to be used by ORB
* implementor. It exposes the publicly defined APIs that
* are used to connect stubs and skeletons to the ORB.
* The Delegate interface provides the ORB vendor specific
* implementation of PortableServer::Servant.
* Conformant to spec CORBA V2.3.1, ptc/00-01-08.pdf
*/
public interface Delegate {
/**
* Convenience method that returns the instance of the ORB
* currently associated with the Servant.
* @param Self the servant.
* @return ORB associated with the Servant.
*/
org.omg.CORBA.ORB orb(Servant Self);
/**
* This allows the servant to obtain the object reference for
* the target CORBA Object it is incarnating for that request.
* @param Self the servant.
* @return Object reference associated with the request.
*/
org.omg.CORBA.Object this_object(Servant Self);
/**
* The method _poa() is equivalent to
* calling PortableServer::Current:get_POA.
* @param Self the servant.
* @return POA associated with the servant.
*/
POA poa(Servant Self);
/**
* The method _object_id() is equivalent
* to calling PortableServer::Current::get_object_id.
* @param Self the servant.
* @return ObjectId associated with this servant.
*/
byte[] object_id(Servant Self);
/**
* The default behavior of this function is to return the
* root POA from the ORB instance associated with the servant.
* @param Self the servant.
* @return POA associated with the servant class.
*/
POA default_POA(Servant Self);
/**
* This method checks to see if the specified repid is present
* on the list returned by _all_interfaces() or is the
* repository id for the generic CORBA Object.
* @param Self the servant.
* @param Repository_Id the repository_id to be checked in the
* repository list or against the id of generic CORBA
* object.
* @return boolean indicating whether the specified repid is
* in the list or is same as that got generic CORBA
* object.
*/
boolean is_a(Servant Self, String Repository_Id);
/**
* This operation is used to check for the existence of the
* Object.
* @param Self the servant.
* @return boolean true to indicate that object does not exist,
* and false otherwise.
*/
boolean non_existent(Servant Self);
//Simon And Ken Will Ask About Editorial Changes
//In Idl To Java For The Following Signature.
/**
* This operation returns an object in the Interface Repository
* which provides type information that may be useful to a program.
* @param self the servant.
* @return type information corresponding to the object.
*/
// The get_interface() method has been replaced by get_interface_def()
//org.omg.CORBA.Object get_interface(Servant Self);
org.omg.CORBA.Object get_interface_def(Servant self);
}