Imported GNU Classpath 0.92

2006-08-14  Mark Wielaard  <mark@klomp.org>

       Imported GNU Classpath 0.92
       * HACKING: Add more importing hints. Update automake version
       requirement.

       * configure.ac (gconf-peer): New enable AC argument.
       Add --disable-gconf-peer and --enable-default-preferences-peer
       to classpath configure when gconf is disabled.
       * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
       gnu/java/awt/dnd/peer/gtk to bc. Classify
       gnu/java/security/Configuration.java as generated source file.

       * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
       gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
       gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
       gnu/java/lang/management/VMThreadMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryMXBeanImpl.java,
       gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
       classes.
       * java/lang/management/VMManagementFactory.java: Likewise.
       * java/net/VMURLConnection.java: Likewise.
       * gnu/java/nio/VMChannel.java: Likewise.

       * java/lang/Thread.java (getState): Add stub implementation.
       * java/lang/Class.java (isEnum): Likewise.
       * java/lang/Class.h (isEnum): Likewise.

       * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.

       * javax/naming/spi/NamingManager.java: New override for StackWalker
       functionality.

       * configure, sources.am, Makefile.in, gcj/Makefile.in,
       include/Makefile.in, testsuite/Makefile.in: Regenerated.

From-SVN: r116139
This commit is contained in:
Mark Wielaard
2006-08-14 23:12:35 +00:00
parent abab460491
commit ac1ed908de
1294 changed files with 99479 additions and 35933 deletions
@@ -51,11 +51,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class CompletionStatusHelper
{
/**
* The cached typecode value, computed once.
*/
private static TypeCode typeCode;
/**
* Extract the {@link CompletionStatus} from the
* given {@link Any}. This implementation expects
@@ -125,16 +120,12 @@ public abstract class CompletionStatusHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
String[] members =
new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" };
typeCode =
OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus",
members
);
}
return typeCode;
String[] members =
new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" };
return
OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus",
members
);
}
}
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -84,19 +86,13 @@ public abstract class CurrentHelper
}
}
/**
* The cached {@link Current} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link Current}.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "Current");
return typeCode;
return
OrbRestricted.Singleton.create_interface_tc(id(), "Current");
}
/**
@@ -54,11 +54,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class DefinitionKindHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Insert the definition kind into the given Any.
*/
@@ -83,25 +78,21 @@ public abstract class DefinitionKindHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
String[] members =
new String[]
{
"dk_none", "dk_all", "dk_Attribute", "dk_Constant", "dk_Exception",
"dk_Interface", "dk_Module", "dk_Operation", "dk_Typedef",
"dk_Alias", "dk_Struct", "dk_Union", "dk_Enum", "dk_Primitive",
"dk_String", "dk_Sequence", "dk_Array", "dk_Repository",
"dk_Wstring", "dk_Fixed", "dk_Value", "dk_ValueBox",
"dk_ValueMember", "dk_Native"
};
typeCode =
OrbRestricted.Singleton.create_enum_tc(id(), "DefinitionKind",
members
);
}
return typeCode;
String[] members =
new String[]
{
"dk_none", "dk_all", "dk_Attribute", "dk_Constant", "dk_Exception",
"dk_Interface", "dk_Module", "dk_Operation", "dk_Typedef",
"dk_Alias", "dk_Struct", "dk_Union", "dk_Enum", "dk_Primitive",
"dk_String", "dk_Sequence", "dk_Array", "dk_Repository",
"dk_Wstring", "dk_Fixed", "dk_Value", "dk_ValueBox",
"dk_ValueMember", "dk_Native"
};
return
OrbRestricted.Singleton.create_enum_tc(id(), "DefinitionKind",
members
);
}
/**
@@ -52,11 +52,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class IDLTypeHelper
{
/**
* The cached typecode value, computed once.
*/
private static TypeCode typeCode;
/**
* Insert the IDL type into the given Any.
*/
@@ -81,14 +76,8 @@ public abstract class IDLTypeHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
typeCode =
OrbRestricted.Singleton.create_interface_tc(IDLTypeHelper.id(),
"IDLType"
);
}
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(IDLTypeHelper.id(),
"IDLType");
}
/**
@@ -43,6 +43,7 @@ import gnu.CORBA.typecodes.AliasTypeCode;
import gnu.CORBA.typecodes.PrimitiveTypeCode;
import gnu.CORBA.typecodes.StringTypeCode;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
@@ -60,11 +61,6 @@ public abstract class NameValuePairHelper
*/
private static String _id = "IDL:omg.org/CORBA/NameValuePair:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the NameValuePair from the given {@link Any}.
*/
@@ -115,21 +111,18 @@ public abstract class NameValuePairHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
StructMember[] members = new StructMember[ 2 ];
StructMember[] members = new StructMember[2];
TypeCode t_id =
new AliasTypeCode(new StringTypeCode(TCKind.tk_string), "", "id");
TypeCode t_id = new AliasTypeCode(new StringTypeCode(TCKind.tk_string), "",
"id");
members [ 0 ] = new StructMember("id", t_id, null);
members[0] = new StructMember("id", t_id, null);
members [ 1 ] =
new StructMember("value", new PrimitiveTypeCode(TCKind.tk_any), null);
members[1] = new StructMember("value",
new PrimitiveTypeCode(TCKind.tk_any), null);
typeCode = ORB.init().create_struct_tc(id(), "NameValuePair", members);
}
return typeCode;
return OrbRestricted.Singleton.create_struct_tc(id(), "NameValuePair",
members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import gnu.CORBA.typecodes.PrimitiveTypeCode;
import org.omg.CORBA.portable.InputStream;
@@ -51,8 +52,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class ObjectHelper
{
static TypeCode typeCode;
/**
* Extract the array of object from the given {@link Any}.
*/
@@ -100,9 +99,7 @@ public abstract class ObjectHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().get_primitive_tc(TCKind.tk_objref);
return typeCode;
return OrbRestricted.Singleton.get_primitive_tc(TCKind.tk_objref);
}
/**
@@ -53,11 +53,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class ParameterModeHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Insert the parameter mode into the given Any.
*/
@@ -81,15 +76,11 @@ public abstract class ParameterModeHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
String[] members =
new String[] { "PARAM_IN", "PARAM_OUT", "PARAM_INOUT" };
typeCode =
return
OrbRestricted.Singleton.create_enum_tc(id(), "ParameterMode", members);
}
return typeCode;
}
/**
@@ -106,7 +106,7 @@ public abstract class PolicyErrorCodeHelper
}
/**
* Delegates call to {@link OutputStream.write_short()}.
* Delegates call to {@link OutputStream#write_short()}.
*/
public static void write(OutputStream ostream, short value)
{
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -56,11 +57,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class PolicyErrorHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the PolicyError typecode. The typecode defines a structure, named
* "PolicyError", containing the {@link PolicyErrorCode} (alias int) field,
@@ -68,21 +64,17 @@ public abstract class PolicyErrorHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 1 ];
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/CORBA/PolicyErrorCode:1.0",
"PolicyErrorCode", orb.get_primitive_tc(TCKind.tk_short)
);
members [ 0 ] = new StructMember("reason", field, null);
typeCode = orb.create_exception_tc(id(), "PolicyError", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 1 ];
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/CORBA/PolicyErrorCode:1.0",
"PolicyErrorCode", orb.get_primitive_tc(TCKind.tk_short)
);
members [ 0 ] = new StructMember("reason", field, null);
return orb.create_exception_tc(id(), "PolicyError", members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -59,11 +60,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class PolicyHelper
{
/**
* The cached {@link Policy} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link Policy}.
*
@@ -71,9 +67,7 @@ public abstract class PolicyHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "Policy");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(), "Policy");
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -59,19 +60,12 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class PolicyListHelper
{
/**
* The cached {@link Policy[]} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link Policy[]}.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "Policy[]");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(), "Policy[]");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -65,7 +67,7 @@ public abstract class PolicyTypeHelper
*/
public static TypeCode type()
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
return orb.create_alias_tc(id(), "PolicyType",
orb.get_primitive_tc(TCKind.tk_ulong)
);
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import gnu.CORBA.ServiceDetailHolder;
import org.omg.CORBA.portable.InputStream;
@@ -56,11 +57,6 @@ public abstract class ServiceDetailHelper
*/
private static String _id = "IDL:omg.org/CORBA/ServiceDetail:1.0";
/**
* The cached typecode value, computed once.
*/
private static TypeCode typeCode;
/**
* Extract the service detail info from the given {@link Any}
*
@@ -137,25 +133,21 @@ public abstract class ServiceDetailHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode type =
orb.create_alias_tc(_id, "ServiceDetailType",
orb.get_primitive_tc(TCKind.tk_ulong)
);
members [ 0 ] = new StructMember("service_detail_type", type, null);
TypeCode data =
orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members [ 1 ] = new StructMember("service_detail", data, null);
typeCode = orb.create_struct_tc(id(), "ServiceDetail", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode type =
orb.create_alias_tc(_id, "ServiceDetailType",
orb.get_primitive_tc(TCKind.tk_ulong)
);
members [ 0 ] = new StructMember("service_detail_type", type, null);
TypeCode data =
orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members [ 1 ] = new StructMember("service_detail", data, null);
return orb.create_struct_tc(id(), "ServiceDetail", members);
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
@@ -56,11 +58,6 @@ public abstract class ServiceInformationHelper
*/
private static String _id = "IDL:org/omg/CORBA/ServiceInformation:1.0";
/**
* The caches typecode value, computed once.
*/
private static TypeCode typeCode;
/**
* Extract the service information from the given Any.
*/
@@ -109,34 +106,30 @@ public abstract class ServiceInformationHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member =
orb.create_alias_tc("IDL:omg.org/CORBA/ServiceOptionSeq:1.0",
"ServiceOptionSeq", LongSeqHelper.type()
);
members [ 0 ] = new StructMember("service_options", member, null);
member = ServiceDetailHelper.type();
member = orb.create_sequence_tc(0, member);
member =
orb.create_alias_tc("IDL:omg.org/CORBA/ServiceDetailSeq:1.0",
"ServiceDetailSeq", member
);
members [ 1 ] = new StructMember("service_details", member, null);
typeCode =
orb.create_struct_tc(ServiceInformationHelper.id(),
"ServiceInformation", members
);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member =
orb.create_alias_tc("IDL:omg.org/CORBA/ServiceOptionSeq:1.0",
"ServiceOptionSeq", LongSeqHelper.type()
);
members [ 0 ] = new StructMember("service_options", member, null);
member = ServiceDetailHelper.type();
member = orb.create_sequence_tc(0, member);
member =
orb.create_alias_tc("IDL:omg.org/CORBA/ServiceDetailSeq:1.0",
"ServiceDetailSeq", member
);
members [ 1 ] = new StructMember("service_details", member, null);
return
orb.create_struct_tc(ServiceInformationHelper.id(),
"ServiceInformation", members
);
}
/**
@@ -51,11 +51,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class SetOverrideTypeHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Insert the definition kind into the given Any.
*/
@@ -79,20 +74,16 @@ public abstract class SetOverrideTypeHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
String[] members =
new String[]
{
"SET_OVERRIDE" ,"ADD_OVERRIDE"
};
typeCode =
OrbRestricted.Singleton.create_enum_tc(id(), "SetOverrideType",
members
);
}
return typeCode;
String[] members =
new String[]
{
"SET_OVERRIDE" ,"ADD_OVERRIDE"
};
return
OrbRestricted.Singleton.create_enum_tc(id(), "SetOverrideType",
members
);
}
/**
@@ -65,11 +65,6 @@ public class StringValueHelper
*/
private static final String id = "IDL:omg.org/CORBA/StringValue:1.0";
/**
* The cached typecode value, computed once.
*/
private static TypeCode typecode;
/**
* The String typecode.
*/
@@ -175,18 +170,13 @@ public class StringValueHelper
}
/**
* Create and return the value box typecode, named "StringValue",
* with the content typecode being unbounded string.
* Create and return the value box typecode, named "StringValue", with the
* content typecode being unbounded string.
*/
public static TypeCode type()
{
if (typecode == null)
{
ORB orb = OrbRestricted.Singleton;
typecode =
orb.create_value_box_tc(id(), "StringValue", tString);
}
return typecode;
ORB orb = OrbRestricted.Singleton;
return orb.create_value_box_tc(id(), "StringValue", tString);
}
/**
@@ -94,7 +94,7 @@ public abstract class UnionMemberHelper
{
if (active)
{
return ORB.init().create_recursive_tc(id());
return OrbRestricted.Singleton.create_recursive_tc(id());
}
active = true;
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CORBA;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -56,11 +57,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class UnknownUserExceptionHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the UnknownUserException typecode (structure,
* named "UnknownUserException", containing a single field of
@@ -68,19 +64,15 @@ public abstract class UnknownUserExceptionHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 1 ];
TypeCode field;
field = orb.get_primitive_tc(TCKind.tk_any);
members [ 0 ] = new StructMember("except", field, null);
typeCode =
return
orb.create_exception_tc(id(), "UnknownUserException", members);
}
return typeCode;
}
/**
@@ -52,11 +52,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class VisibilityHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Insert the Visibility into the given Any.
* Uses {@link Any#insert_short}.
@@ -80,14 +75,10 @@ public abstract class VisibilityHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
TypeCode tshort =
OrbRestricted.Singleton.get_primitive_tc(TCKind.tk_short);
typeCode =
return
OrbRestricted.Singleton.create_alias_tc(id(), "Visibility", tshort);
}
return typeCode;
}
/**
@@ -65,11 +65,6 @@ public class WStringValueHelper
*/
private static final String id = "IDL:omg.org/CORBA/WStringValue:1.0";
/**
* The cached typecode value, computed once.
*/
private static TypeCode typecode;
/**
* The Wide String typecode.
*/
@@ -175,18 +170,13 @@ public class WStringValueHelper
}
/**
* Create and return the value box typecode, named "WStringValue",
* with the content typecode being unbounded string.
* Create and return the value box typecode, named "WStringValue", with the
* content typecode being unbounded string.
*/
public static TypeCode type()
{
if (typecode == null)
{
ORB orb = OrbRestricted.Singleton;
typecode =
orb.create_value_box_tc(id(), "WStringValue", twString);
}
return typecode;
ORB orb = OrbRestricted.Singleton;
return orb.create_value_box_tc(id(), "WStringValue", twString);
}
/**
@@ -40,6 +40,7 @@ package org.omg.CORBA;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,24 +58,15 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class WrongTransactionHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the WrongTransaction typecode (structure,
* named "WrongTransaction"), no fields.
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "WrongTransaction", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
return orb.create_exception_tc(id(), "WrongTransaction", members);
}
/* Every user exception with no user defined
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -60,11 +61,6 @@ public abstract class BindingHelper
*/
private static String _id = "IDL:omg.org/CosNaming/Binding:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the binding from the given {@link Any}.
*/
@@ -115,21 +111,17 @@ public abstract class BindingHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member = NameComponentHelper.type();
member = orb.create_sequence_tc(0, member);
member = orb.create_alias_tc(NameHelper.id(), "Name", member);
members [ 0 ] = new StructMember("binding_name", member, null);
member = BindingTypeHelper.type();
members [ 1 ] = new StructMember("binding_type", member, null);
typeCode = orb.create_struct_tc(id(), "Binding", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member = NameComponentHelper.type();
member = orb.create_sequence_tc(0, member);
member = orb.create_alias_tc(NameHelper.id(), "Name", member);
members [ 0 ] = new StructMember("binding_name", member, null);
member = BindingTypeHelper.type();
members [ 1 ] = new StructMember("binding_type", member, null);
return orb.create_struct_tc(id(), "Binding", members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -62,11 +63,6 @@ public abstract class BindingIteratorHelper
*/
private static String _id = "IDL:omg.org/CosNaming/BindingIterator:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode = null;
/**
* Extract the binding iterator from the given {@link Any}.
*/
@@ -167,9 +163,7 @@ public abstract class BindingIteratorHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "BindingIterator");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(), "BindingIterator");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -57,11 +59,6 @@ public abstract class BindingListHelper
*/
private static String _id = "IDL:omg.org/CosNaming/BindingList:1.0";
/**
* The cached binding list type code.
*/
private static TypeCode typeCode;
/**
* Extract the array of bindings from the given {@link Any}.
*/
@@ -112,13 +109,11 @@ public abstract class BindingListHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
typeCode = BindingHelper.type();
typeCode = orb.create_sequence_tc(0, typeCode);
typeCode = orb.create_alias_tc(id(), "BindingList", typeCode);
}
TypeCode typeCode;
ORB orb = OrbRestricted.Singleton;
typeCode = BindingHelper.type();
typeCode = orb.create_sequence_tc(0, typeCode);
typeCode = orb.create_alias_tc(id(), "BindingList", typeCode);
return typeCode;
}
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,8 +59,6 @@ public abstract class BindingTypeHelper
* The binding type repository id.
*/
private static String id = "IDL:omg.org/CosNaming/BindingType:1.0";
private static TypeCode typeCode = null;
/**
* Extract the binding type from the given {@link Any}.
*/
@@ -105,16 +104,10 @@ public abstract class BindingTypeHelper
/**
* Get the type code of this enumeration.
*/
public static synchronized TypeCode type()
public static TypeCode type()
{
if (typeCode == null)
{
typeCode =
ORB.init().create_enum_tc(id(), "BindingType",
new String[] { "nobject", "ncontext" }
);
}
return typeCode;
return OrbRestricted.Singleton.create_enum_tc(id(), "BindingType",
new String[] { "nobject", "ncontext" });
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -60,11 +61,6 @@ public abstract class NameComponentHelper
*/
private static String _id = "IDL:omg.org/CosNaming/NameComponent:1.0";
/**
* The cached type code.
*/
private static TypeCode typeCode = null;
/**
* Extract the name component from this {@link Any}
*/
@@ -116,22 +112,18 @@ public abstract class NameComponentHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member = orb.create_string_tc(0);
members [ 0 ] = new StructMember("id", member, null);
member = orb.create_string_tc(0);
members [ 1 ] = new StructMember("kind", member, null);
typeCode =
orb.create_struct_tc(NameComponentHelper.id(), "NameComponent",
members
);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member = orb.create_string_tc(0);
members [ 0 ] = new StructMember("id", member, null);
member = orb.create_string_tc(0);
members [ 1 ] = new StructMember("kind", member, null);
return
orb.create_struct_tc(NameComponentHelper.id(), "NameComponent",
members
);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -61,11 +62,6 @@ public abstract class NameHelper
*/
private static String _id = "IDL:omg.org/CosNaming/Name:1.0";
/**
* The cached typecode of the Name.
*/
private static TypeCode typeCode;
/**
* Extract the Name the given {@link Any}.
*/
@@ -118,13 +114,11 @@ public abstract class NameHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
typeCode = NameComponentHelper.type();
typeCode = ORB.init().create_sequence_tc(0, typeCode);
typeCode =
ORB.init().create_alias_tc(NameHelper.id(), "Name", typeCode);
}
TypeCode typeCode;
typeCode = NameComponentHelper.type();
typeCode = OrbRestricted.Singleton.create_sequence_tc(0, typeCode);
typeCode =
OrbRestricted.Singleton.create_alias_tc(NameHelper.id(), "Name", typeCode);
return typeCode;
}
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -62,11 +63,6 @@ public abstract class NamingContextExtHelper
*/
private static String _id = "IDL:omg.org/CosNaming/NamingContextExt:1.0";
/**
* The cached {@link NamingContextExt} typecode.
*/
private static TypeCode typeCode = null;
/**
* Extract the naming context from the given {@link Any}.
*/
@@ -168,12 +164,8 @@ public abstract class NamingContextExtHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode =
ORB.init().create_interface_tc(NamingContextExtHelper.id(),
"NamingContextExt"
);
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(NamingContextExtHelper.id(),
"NamingContextExt");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextExtPackage;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
@@ -59,11 +61,6 @@ public abstract class AddressHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContextExt/Address:1.0";
/**
* The cached type code (string alias).
*/
private static TypeCode typeCode = null;
/**
* Just extracts string from this {@link Any}.
*/
@@ -99,13 +96,12 @@ public abstract class AddressHelper
/**
* Return the "Address", alias of String, typecode.
*/
public static synchronized TypeCode type()
public static TypeCode type()
{
if (typeCode == null)
{
typeCode = ORB.init().create_string_tc(0);
typeCode = ORB.init().create_alias_tc(id(), "Address", typeCode);
}
ORB orb = OrbRestricted.Singleton;
TypeCode typeCode;
typeCode = orb.create_string_tc(0);
typeCode = orb.create_alias_tc(id(), "Address", typeCode);
return typeCode;
}
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextExtPackage;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.StructMember;
@@ -58,11 +60,6 @@ public abstract class InvalidAddressHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -102,16 +99,10 @@ public abstract class InvalidAddressHelper
/**
* Create the type code for this exception.
*/
public static synchronized TypeCode type()
public static TypeCode type()
{
if (typeCode == null)
{
typeCode =
ORB.init().create_struct_tc(InvalidAddressHelper.id(),
"InvalidAddress", new StructMember[ 0 ]
);
}
return typeCode;
return OrbRestricted.Singleton.create_struct_tc(InvalidAddressHelper.id(),
"InvalidAddress", new StructMember[0]);
}
public static void write(OutputStream ostream, InvalidAddress value)
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextExtPackage;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
@@ -60,11 +62,6 @@ public abstract class StringNameHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContextExt/StringName:1.0";
/**
* The cached type code (string alias).
*/
private static TypeCode typeCode;
/**
* Just extracts string from this {@link Any}.
*/
@@ -100,13 +97,11 @@ public abstract class StringNameHelper
/**
* Return the "StringName", alias of String, typecode.
*/
public static synchronized TypeCode type()
public static TypeCode type()
{
if (typeCode == null)
{
typeCode = ORB.init().create_string_tc(0);
typeCode = ORB.init().create_alias_tc(id(), "StringName", typeCode);
}
TypeCode typeCode;
typeCode = OrbRestricted.Singleton.create_string_tc(0);
typeCode = OrbRestricted.Singleton.create_alias_tc(id(), "StringName", typeCode);
return typeCode;
}
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextExtPackage;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
@@ -59,11 +61,6 @@ public abstract class URLStringHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContextExt/URLString:1.0";
/**
* The cached type code (string alias).
*/
private static TypeCode typeCode;
/**
* Just extracts string from this {@link Any}.
*/
@@ -99,13 +96,11 @@ public abstract class URLStringHelper
/**
* Return the "URLString", alias of String, typecode.
*/
public static synchronized TypeCode type()
public static TypeCode type()
{
if (typeCode == null)
{
typeCode = ORB.init().create_string_tc(0);
typeCode = ORB.init().create_alias_tc(id(), "URLString", typeCode);
}
TypeCode typeCode;
typeCode = OrbRestricted.Singleton.create_string_tc(0);
typeCode = OrbRestricted.Singleton.create_alias_tc(id(), "URLString", typeCode);
return typeCode;
}
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -62,11 +63,6 @@ public abstract class NamingContextHelper
*/
private static String _id = "IDL:omg.org/CosNaming/NamingContext:1.0";
/**
* The cached {@link NamingContext} typecode.
*/
private static TypeCode typeCode;
/**
* Extract the naming context from the given {@link Any}.
*/
@@ -176,9 +172,7 @@ public abstract class NamingContextHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "NamingContext");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(), "NamingContext");
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -61,11 +62,6 @@ public abstract class AlreadyBoundHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -117,10 +113,8 @@ public abstract class AlreadyBoundHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode =
ORB.init().create_struct_tc(id(), "AlreadyBound", new StructMember[ 0 ]);
return typeCode;
return
OrbRestricted.Singleton.create_struct_tc(id(), "AlreadyBound", new StructMember[ 0 ]);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -64,11 +65,6 @@ public abstract class CannotProceedHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -122,21 +118,17 @@ public abstract class CannotProceedHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member = NamingContextHelper.type();
members [ 0 ] = new StructMember("cxt", member, null);
member = NameComponentHelper.type();
member = orb.create_sequence_tc(0, member);
member = orb.create_alias_tc(NameHelper.id(), "Name", member);
members [ 1 ] = new StructMember("rest_of_name", member, null);
typeCode = orb.create_struct_tc(id(), "CannotProceed", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode member;
member = NamingContextHelper.type();
members [ 0 ] = new StructMember("cxt", member, null);
member = NameComponentHelper.type();
member = orb.create_sequence_tc(0, member);
member = orb.create_alias_tc(NameHelper.id(), "Name", member);
members [ 1 ] = new StructMember("rest_of_name", member, null);
return orb.create_struct_tc(id(), "CannotProceed", members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -61,11 +62,6 @@ public abstract class InvalidNameHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -117,15 +113,8 @@ public abstract class InvalidNameHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
if (typeCode == null)
typeCode =
ORB.init().create_struct_tc(id(), "InvalidName",
new StructMember[ 0 ]
);
}
return typeCode;
return OrbRestricted.Singleton.create_struct_tc(id(),
"InvalidName", new StructMember[0]);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -61,11 +62,6 @@ public abstract class NotEmptyHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -117,10 +113,8 @@ public abstract class NotEmptyHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode =
ORB.init().create_struct_tc(id(), "NotEmpty", new StructMember[ 0 ]);
return typeCode;
return OrbRestricted.Singleton.create_struct_tc(id(),
"NotEmpty", new StructMember[0]);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -63,11 +64,6 @@ public abstract class NotFoundHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContext/NotFound:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode = null;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -121,21 +117,17 @@ public abstract class NotFoundHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode member = null;
member = NotFoundReasonHelper.type();
members [ 0 ] = new StructMember("why", member, null);
member = NameComponentHelper.type();
member = orb.create_sequence_tc(0, member);
member = orb.create_alias_tc(NameHelper.id(), "Name", member);
members [ 1 ] = new StructMember("rest_of_name", member, null);
typeCode = orb.create_struct_tc(id(), "NotFound", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode member = null;
member = NotFoundReasonHelper.type();
members [ 0 ] = new StructMember("why", member, null);
member = NameComponentHelper.type();
member = orb.create_sequence_tc(0, member);
member = orb.create_alias_tc(NameHelper.id(), "Name", member);
members [ 1 ] = new StructMember("rest_of_name", member, null);
return orb.create_struct_tc(id(), "NotFound", members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -60,11 +61,6 @@ public abstract class NotFoundReasonHelper
private static String _id =
"IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0";
/**
* The cached type code value.
*/
private static TypeCode typeCode;
/**
* Extract the exception from the given {@link Any}.
*/
@@ -112,15 +108,15 @@ public abstract class NotFoundReasonHelper
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode =
ORB.init().create_enum_tc(id(), "NotFoundReason",
new String[]
{
"missing_node", "not_context", "not_object"
}
);
return typeCode;
return
OrbRestricted.Singleton.create_enum_tc(id(), "NotFoundReason",
new String[]
{
"missing_node",
"not_context",
"not_object"
}
);
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.TCKind;
@@ -53,11 +55,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class AnySeqHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Delegates call to {@link org.omg.CORBA.AnySeqHelper#extract}.
*/
@@ -102,14 +99,10 @@ public abstract class AnySeqHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
TypeCode t =
orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_any));
typeCode = orb.create_alias_tc(id(), "AnySeq", t);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
TypeCode t =
orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_any));
return orb.create_alias_tc(id(), "AnySeq", t);
}
/**
@@ -40,6 +40,7 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
@@ -107,7 +108,7 @@ public abstract class DynAnyFactoryHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynAnyFactory");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynAnyFactory");
}
/**
@@ -40,6 +40,7 @@ package org.omg.DynamicAny.DynAnyFactoryPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,29 +59,19 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class InconsistentTypeCodeHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the InconsistentTypeCode typecode (structure,
* named "InconsistentTypeCode").
* Create the InconsistentTypeCode typecode (structure, named
* "InconsistentTypeCode").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode =
orb.create_exception_tc(id(), "InconsistentTypeCode", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "InconsistentTypeCode", members);
}
/**
* Insert the InconsistentTypeCode into the given Any.
*
*
* @param any the Any to insert into.
* @param that the InconsistentTypeCode to insert.
*/
@@ -39,6 +39,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -104,7 +106,7 @@ public abstract class DynAnyHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynAny");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynAny");
}
/**
@@ -40,6 +40,7 @@ package org.omg.DynamicAny.DynAnyPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,23 +59,13 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class InvalidValueHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the InvalidValue typecode (structure,
* named "InvalidValue").
* Create the InvalidValue typecode (structure, named "InvalidValue").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "InvalidValue", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "InvalidValue", members);
}
/* Every user exception with no user defined
@@ -40,6 +40,7 @@ package org.omg.DynamicAny.DynAnyPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,23 +59,13 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class TypeMismatchHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the TypeMismatch typecode (structure,
* named "TypeMismatch").
* Create the TypeMismatch typecode (structure, named "TypeMismatch").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "TypeMismatch", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "TypeMismatch", members);
}
/* Every user exception with no user defined
@@ -40,6 +40,7 @@ package org.omg.DynamicAny;
import gnu.CORBA.DynAnySeqHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -63,20 +64,11 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class DynAnySeqHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
TypeCode t = orb.create_sequence_tc(0, DynAnyHelper.type());
typeCode = orb.create_alias_tc(id(), "DynAnySeq", t);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
TypeCode t = orb.create_sequence_tc(0, DynAnyHelper.type());
return orb.create_alias_tc(id(), "DynAnySeq", t);
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -103,7 +105,7 @@ public abstract class DynArrayHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynArray");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynArray");
}
/**
@@ -39,6 +39,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -104,7 +106,7 @@ public abstract class DynEnumHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynEnum");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynEnum");
}
/**
@@ -39,6 +39,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -104,7 +106,7 @@ public abstract class DynFixedHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynFixed");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynFixed");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -103,7 +105,7 @@ public abstract class DynSequenceHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynSequence");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynSequence");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -103,7 +105,7 @@ public abstract class DynStructHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynStruct");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynStruct");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -103,7 +105,7 @@ public abstract class DynUnionHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynUnion");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynUnion");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.DynamicAny;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.ORB;
@@ -103,7 +105,7 @@ public abstract class DynValueHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "DynValue");
return OrbRestricted.Singleton.create_interface_tc(id(), "DynValue");
}
/**
@@ -40,6 +40,7 @@ package org.omg.DynamicAny;
import gnu.CORBA.Minor;
import gnu.CORBA.NameDynAnyPairHolder;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -63,11 +64,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class NameDynAnyPairHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Extract the NameDynAnyPair from given Any.
* This method uses the NameDynAnyPairHolder.
@@ -107,25 +103,21 @@ public abstract class NameDynAnyPairHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/DynamicAny/FieldName:1.0",
"FieldName",
orb.get_primitive_tc(TCKind.tk_string)
);
members [ 0 ] = new StructMember("id", field, null);
field = DynAnyHelper.type();
members [ 1 ] = new StructMember("value", field, null);
typeCode = orb.create_struct_tc(id(), "NameDynAnyPair", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/DynamicAny/FieldName:1.0",
"FieldName",
orb.get_primitive_tc(TCKind.tk_string)
);
members [ 0 ] = new StructMember("id", field, null);
field = DynAnyHelper.type();
members [ 1 ] = new StructMember("value", field, null);
return orb.create_struct_tc(id(), "NameDynAnyPair", members);
}
/**
@@ -40,6 +40,7 @@ package org.omg.DynamicAny;
import gnu.CORBA.Minor;
import gnu.CORBA.NameDynAnyPairSeqHolder;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -62,20 +63,11 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class NameDynAnyPairSeqHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
TypeCode t = orb.create_sequence_tc(0, NameDynAnyPairHelper.type());
typeCode = orb.create_alias_tc(id(), "NameDynAnyPairSeq", t);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
TypeCode t = orb.create_sequence_tc(0, NameDynAnyPairHelper.type());
return orb.create_alias_tc(id(), "NameDynAnyPairSeq", t);
}
/**
@@ -40,6 +40,7 @@ package org.omg.DynamicAny;
import gnu.CORBA.Minor;
import gnu.CORBA.NameValuePairHolder;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,11 +58,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class NameValuePairHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the NameValuePair typecode (structure,
* named "NameValuePair").
@@ -70,25 +66,21 @@ public abstract class NameValuePairHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/DynamicAny/FieldName:1.0",
"FieldName",
orb.get_primitive_tc(TCKind.tk_string)
);
members [ 0 ] = new StructMember("id", field, null);
field = orb.get_primitive_tc(TCKind.tk_any);
members [ 1 ] = new StructMember("value", field, null);
typeCode = orb.create_struct_tc(id(), "NameValuePair", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 2 ];
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/DynamicAny/FieldName:1.0",
"FieldName",
orb.get_primitive_tc(TCKind.tk_string)
);
members [ 0 ] = new StructMember("id", field, null);
field = orb.get_primitive_tc(TCKind.tk_any);
members [ 1 ] = new StructMember("value", field, null);
return orb.create_struct_tc(id(), "NameValuePair", members);
}
/**
@@ -40,6 +40,7 @@ package org.omg.DynamicAny;
import gnu.CORBA.Minor;
import gnu.CORBA.NameValuePairSeqHolder;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -55,20 +56,11 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class NameValuePairSeqHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
TypeCode t = orb.create_sequence_tc(0, NameValuePairHelper.type());
typeCode = orb.create_alias_tc(id(), "NameValuePairSeq", t);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
TypeCode t = orb.create_sequence_tc(0, NameValuePairHelper.type());
return orb.create_alias_tc(id(), "NameValuePairSeq", t);
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.CompletionStatus;
@@ -55,19 +57,12 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class CodecFactoryHelper
{
/**
* The cached {@link CodecFactory} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link CodecFactory}.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "CodecFactory");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(), "CodecFactory");
}
/**
@@ -40,6 +40,7 @@ package org.omg.IOP.CodecFactoryPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.ORB;
import org.omg.CORBA.Any;
@@ -58,26 +59,17 @@ import org.omg.CORBA.BAD_OPERATION;
*/
public abstract class UnknownEncodingHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the UnknownEncoding typecode (structure,
* named "UnknownEncoding").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[0];
typeCode =
orb.create_exception_tc (id(), "UnknownEncoding", members);
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return
orb.create_exception_tc (id(), "UnknownEncoding", members);
}
return typeCode;
}
/* Every user exception with no user defined fields can use EmptyExceptionHolder */
@@ -40,6 +40,7 @@ package org.omg.IOP.CodecPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,24 +58,15 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class FormatMismatchHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the FormatMismatch typecode (structure,
* named "FormatMismatch").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "FormatMismatch", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
return orb.create_exception_tc(id(), "FormatMismatch", members);
}
/**
@@ -40,6 +40,7 @@ package org.omg.IOP.CodecPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,29 +59,19 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class InvalidTypeForEncodingHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the InvalidTypeForEncoding typecode (structure,
* named "InvalidTypeForEncoding").
* Create the InvalidTypeForEncoding typecode (structure, named
* "InvalidTypeForEncoding").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode =
orb.create_exception_tc(id(), "InvalidTypeForEncoding", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "InvalidTypeForEncoding", members);
}
/**
* Insert the InvalidTypeForEncoding into the given Any.
*
*
* @param any the Any to insert into.
* @param that the InvalidTypeForEncoding to insert.
*/
@@ -40,6 +40,7 @@ package org.omg.IOP.CodecPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,24 +58,15 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class TypeMismatchHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the TypeMismatch typecode (structure,
* named "TypeMismatch").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "TypeMismatch", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
return orb.create_exception_tc(id(), "TypeMismatch", members);
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -65,10 +67,10 @@ public abstract class ComponentIdHelper
*/
public static TypeCode type()
{
ORB orb = ORB.init();
return orb.create_alias_tc("IDL:omg.org/IOP/ComponentId:1.0", "ComponentId",
orb.get_primitive_tc(TCKind.tk_ulong)
);
ORB orb = OrbRestricted.Singleton;
return orb.create_alias_tc("IDL:omg.org/IOP/ComponentId:1.0",
"ComponentId",
orb.get_primitive_tc(TCKind.tk_ulong));
}
/**
+16 -27
View File
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,42 +58,30 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class IORHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the IOR typecode (structure,
* named "IOR").
* The typecode states that the structure contains the
* following fields: type_id, profiles.
* Create the IOR typecode (structure, named "IOR"). The typecode states that
* the structure contains the following fields: type_id, profiles.
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[2];
TypeCode field;
TypeCode field;
field = orb.get_primitive_tc(TCKind.tk_string);
members [ 0 ] = new StructMember("type_id", field, null);
field = orb.get_primitive_tc(TCKind.tk_string);
members[0] = new StructMember("type_id", field, null);
field = orb.create_sequence_tc(0, TaggedProfileHelper.type());
members [ 1 ] = new StructMember("profiles", field, null);
typeCode = orb.create_struct_tc(id(), "IOR", members);
}
return typeCode;
field = orb.create_sequence_tc(0, TaggedProfileHelper.type());
members[1] = new StructMember("profiles", field, null);
return orb.create_struct_tc(id(), "IOR", members);
}
/**
* Insert the IOR into the given Any.
* This method uses the IORHolder.
*
* @param any the Any to insert into.
* @param that the IOR to insert.
*/
* Insert the IOR into the given Any. This method uses the IORHolder.
*
* @param any the Any to insert into.
* @param that the IOR to insert.
*/
public static void insert(Any any, IOR that)
{
any.insert_Streamable(new IORHolder(that));
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.ORB;
import org.omg.CORBA.Any;
@@ -57,24 +58,15 @@ import org.omg.CORBA.portable.InputStream;
*/
public abstract class MultipleComponentProfileHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
typeCode = orb.create_sequence_tc(0, TaggedComponentHelper.type());
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
return orb.create_sequence_tc(0, TaggedComponentHelper.type());
}
/**
* Insert the MultipleComponentProfile into the given Any.
* This method uses the MultipleComponentProfileHolder.
*
* Insert the MultipleComponentProfile into the given Any. This method uses
* the MultipleComponentProfileHolder.
*
* @param any the Any to insert into.
* @param those the TaggedComponent[] to insert.
*/
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -65,15 +67,14 @@ public abstract class ProfileIdHelper
*/
public static TypeCode type()
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
return orb.create_alias_tc("IDL:omg.org/IOP/ProfileId:1.0", "ProfileId",
orb.get_primitive_tc(TCKind.tk_ulong)
);
orb.get_primitive_tc(TCKind.tk_ulong));
}
/**
* Insert the int into the given Any.
*/
* Insert the int into the given Any.
*/
public static void insert(Any any, int that)
{
any.insert_ulong(that);
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,46 +58,33 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class ServiceContextHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the ServiceContext typecode (structure,
* named "ServiceContext").
* The typecode states that the structure contains the
* following fields: context_id, context_data.
* Create the ServiceContext typecode (structure, named "ServiceContext"). The
* typecode states that the structure contains the following fields:
* context_id, context_data.
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 2 ];
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[2];
TypeCode field;
TypeCode field;
field =
orb.create_alias_tc("IDL:omg.org/IOP/ServiceId:1.0", "ServiceId",
orb.get_primitive_tc(TCKind.tk_ulong)
);
members [ 0 ] = new StructMember("context_id", field, null);
field = orb.create_alias_tc("IDL:omg.org/IOP/ServiceId:1.0", "ServiceId",
orb.get_primitive_tc(TCKind.tk_ulong));
members[0] = new StructMember("context_id", field, null);
field =
orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members [ 1 ] = new StructMember("context_data", field, null);
typeCode = orb.create_struct_tc(id(), "ServiceContext", members);
}
return typeCode;
field = orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members[1] = new StructMember("context_data", field, null);
return orb.create_struct_tc(id(), "ServiceContext", members);
}
/**
* Insert the ServiceContext into the given Any.
* This method uses the ServiceContextHolder.
*
* @param any the Any to insert into.
* @param that the ServiceContext to insert.
*/
* Insert the ServiceContext into the given Any. This method uses the
* ServiceContextHolder.
*
* @param any the Any to insert into.
* @param that the ServiceContext to insert.
*/
public static void insert(Any any, ServiceContext that)
{
any.insert_Streamable(new ServiceContextHolder(that));
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -55,19 +56,13 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class ServiceContextListHelper
{
/**
* The cached {@link ServiceContext[]} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link ServiceContext[]}.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "ServiceContextList");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(),
"ServiceContextList");
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -65,7 +67,7 @@ public abstract class ServiceIdHelper
*/
public static TypeCode type()
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
return orb.create_alias_tc("IDL:omg.org/IOP/ServiceId:1.0", "ServiceId",
orb.get_primitive_tc(TCKind.tk_ulong)
);
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -59,11 +60,6 @@ import java.io.IOException;
*/
public abstract class TaggedComponentHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the TaggedComponent typecode (structure, named "TaggedComponent").
* The typecode states that the structure contains the following fields: tag,
@@ -71,23 +67,19 @@ public abstract class TaggedComponentHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[2];
TypeCode field;
field = orb.create_alias_tc("IDL:omg.org/IOP/ComponentId:1.0",
"ComponentId",
orb.get_primitive_tc(TCKind.tk_ulong));
members[0] = new StructMember("tag", field, null);
field = orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members[1] = new StructMember("component_data", field, null);
typeCode = orb.create_struct_tc(id(), "TaggedComponent", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[2];
TypeCode field;
field = orb.create_alias_tc("IDL:omg.org/IOP/ComponentId:1.0",
"ComponentId",
orb.get_primitive_tc(TCKind.tk_ulong));
members[0] = new StructMember("tag", field, null);
field = orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members[1] = new StructMember("component_data", field, null);
return orb.create_struct_tc(id(), "TaggedComponent", members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import gnu.CORBA.CDR.BufferredCdrInput;
import gnu.CORBA.CDR.BufferedCdrOutput;
@@ -61,11 +62,6 @@ import java.io.IOException;
*/
public abstract class TaggedProfileHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the TaggedProfile typecode (structure, named "TaggedProfile"). The
* typecode states that the structure contains the following fields: tag,
@@ -73,29 +69,24 @@ public abstract class TaggedProfileHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[2];
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[2];
TypeCode field;
TypeCode field;
field = orb.create_alias_tc("IDL:omg.org/IOP/ProfileId:1.0",
"ProfileId",
orb.get_primitive_tc(TCKind.tk_ulong));
members[0] = new StructMember("tag", field, null);
field = orb.create_alias_tc("IDL:omg.org/IOP/ProfileId:1.0", "ProfileId",
orb.get_primitive_tc(TCKind.tk_ulong));
members[0] = new StructMember("tag", field, null);
field = orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members[1] = new StructMember("profile_data", field, null);
typeCode = orb.create_struct_tc(id(), "TaggedProfile", members);
}
return typeCode;
field = orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
members[1] = new StructMember("profile_data", field, null);
return orb.create_struct_tc(id(), "TaggedProfile", members);
}
/**
* Insert the TaggedProfile into the given Any. This method uses the
* TaggedProfileHolder.
*
*
* @param any the Any to insert into.
* @param that the TaggedProfile to insert.
*/
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.PortableInterceptor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -57,15 +59,14 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class AdapterManagerIdHelper
{
/**
* Create the AdapterManagerId typecode (alias of CORBA long (java int),
* named "AdapterManagerId").
* Create the AdapterManagerId typecode (alias of CORBA long (java int), named
* "AdapterManagerId").
*/
public static TypeCode type()
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
return orb.create_alias_tc(id(), "AdapterManagerId",
orb.get_primitive_tc(TCKind.tk_long)
);
orb.get_primitive_tc(TCKind.tk_long));
}
/**
@@ -60,11 +60,6 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class AdapterNameHelper
{
/**
* The cached typecode, computed once.
*/
static TypeCode typecode;
/**
* Extract the adapter name (<code>String[]</code>) from the given {@link Any}.
*
@@ -114,26 +109,22 @@ public abstract class AdapterNameHelper
}
/**
* Creates and returns a new instance of the TypeCode,
* corresponding the adapter name.
* Creates and returns a new instance of the TypeCode, corresponding the
* adapter name.
*
* @return the alias of the string sequence, named "AdapterName".
*/
public static TypeCode type()
{
if (typecode == null)
{
ORB orb = OrbRestricted.Singleton;
TypeCode component = orb.create_string_tc(0);
typecode = orb.create_alias_tc(id(), "AdapterName", component);
}
return typecode;
ORB orb = OrbRestricted.Singleton;
TypeCode component = orb.create_string_tc(0);
return orb.create_alias_tc(id(), "AdapterName", component);
}
/**
* Writes the <code>String[]</code> into the given stream.
*
*
* @param output the CORBA output stream to write.
* @param value the value that must be written.
*/
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.PortableInterceptor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
@@ -62,7 +64,7 @@ public abstract class AdapterStateHelper
*/
public static TypeCode type()
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
return orb.create_alias_tc(id(), "AdapterState",
orb.get_primitive_tc(TCKind.tk_short)
);
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableInterceptor;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_PARAM;
@@ -56,21 +57,12 @@ import org.omg.PortableServer.ServantActivator;
*/
public abstract class CurrentHelper
{
/**
* The cached {@link Current} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link Current}.
*/
public static TypeCode type()
{
if (typeCode == null)
{
typeCode = ORB.init().create_interface_tc(id(), "Current");
}
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(), "Current");
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableInterceptor;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import gnu.CORBA.Interceptor.ForwardRequestHolder;
import org.omg.CORBA.Any;
@@ -58,32 +59,23 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class ForwardRequestHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the ForwardRequest typecode (structure, named "ForwardRequest"). The
* Create the ForwardRequest typecode (structure, named "ForwardRequest"). The
* typecode states that the structure contains the following fields: forward.
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 1 ];
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[1];
TypeCode field = ObjectHelper.type();
members [ 0 ] = new StructMember("forward", field, null);
typeCode = orb.create_exception_tc(id(), "ForwardRequest", members);
}
return typeCode;
TypeCode field = ObjectHelper.type();
members[0] = new StructMember("forward", field, null);
return orb.create_exception_tc(id(), "ForwardRequest", members);
}
/**
* Insert the ForwardRequest into the given Any. This method uses the
* ForwardRequestHolder.
*
*
* @param any the Any to insert into.
* @param that the ForwardRequest to insert.
*/
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableInterceptor;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -59,19 +60,13 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class IORInterceptor_3_0Helper
{
/**
* The cached {@link IORInterceptor_3_0} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link IORInterceptor_3_0}.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode = ORB.init().create_interface_tc(id(), "IORInterceptor_3_0");
return typeCode;
return OrbRestricted.Singleton.create_interface_tc(id(),
"IORInterceptor_3_0");
}
/**
@@ -40,6 +40,7 @@ package org.omg.PortableInterceptor;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -56,23 +57,14 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class InvalidSlotHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the InvalidSlot typecode (structure, named "InvalidSlot").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "InvalidSlot", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "InvalidSlot", members);
}
/*
@@ -57,36 +57,25 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class DuplicateNameHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the DuplicateName typecode (structure,
* named "DuplicateName").
* The typecode states that the structure contains the
* following fields: name.
* Create the DuplicateName typecode (structure, named "DuplicateName"). The
* typecode states that the structure contains the following fields: name.
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 1 ];
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[1];
TypeCode field;
TypeCode field;
field = orb.get_primitive_tc(TCKind.tk_string);
members [ 0 ] = new StructMember("name", field, null);
typeCode = orb.create_exception_tc(id(), "DuplicateName", members);
}
return typeCode;
field = orb.get_primitive_tc(TCKind.tk_string);
members[0] = new StructMember("name", field, null);
return orb.create_exception_tc(id(), "DuplicateName", members);
}
/**
* Insert the DuplicateName into the given Any.
* This method uses the DuplicateNameHolder.
*
* Insert the DuplicateName into the given Any. This method uses the
* DuplicateNameHolder.
*
* @param any the Any to insert into.
* @param that the DuplicateName to insert.
*/
@@ -40,6 +40,7 @@ package org.omg.PortableInterceptor.ORBInitInfoPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,28 +59,18 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class InvalidNameHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the InvalidName typecode (structure,
* named "InvalidName").
* Create the InvalidName typecode (structure, named "InvalidName").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "InvalidName", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "InvalidName", members);
}
/**
* Insert the InvalidName into the given Any.
*
*
* @param any the Any to insert into.
* @param that the InvalidName to insert.
*/
@@ -40,6 +40,7 @@ package org.omg.PortableInterceptor;
import gnu.CORBA.CDR.Vio;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -59,25 +60,17 @@ import org.omg.CORBA.VM_ABSTRACT;
*/
public abstract class ObjectReferenceFactoryHelper
{
/**
* The cached {@link ObjectReferenceFactory} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link ObjectReferenceFactory}.
*
* @return value type code with the agreed id, named
* "ObjectReferenceFactory", abstract, no members, no base type.
*
* @return value type code with the agreed id, named "ObjectReferenceFactory",
* abstract, no members, no base type.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode =
ORB.init().create_value_tc(id(), "ObjectReferenceFactory",
VM_ABSTRACT.value, null, new ValueMember[ 0 ]
);
return typeCode;
return OrbRestricted.Singleton.create_value_tc(id(), "ObjectReferenceFactory",
VM_ABSTRACT.value, null,
new ValueMember[0]);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableInterceptor;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,25 +58,17 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class ObjectReferenceTemplateHelper
{
/**
* The cached {@link ObjectReferenceTemplate} typecode, computed once.
*/
private static TypeCode typeCode;
/**
* Get the type code of the {@link ObjectReferenceTemplate}.
*
* @return value type type code, named ObjectReferenceTemplate,
* no members, abstract.
*
* @return value type type code, named ObjectReferenceTemplate, no members,
* abstract.
*/
public static TypeCode type()
{
if (typeCode == null)
typeCode =
ORB.init().create_value_tc(id(), "ObjectReferenceTemplate",
VM_ABSTRACT.value, null, new ValueMember[ 0 ]
);
return typeCode;
return OrbRestricted.Singleton.create_value_tc(id(), "ObjectReferenceTemplate",
VM_ABSTRACT.value, null,
new ValueMember[0]);
}
/**
@@ -56,11 +56,6 @@ import org.omg.CORBA.portable.Streamable;
*/
public abstract class ObjectReferenceTemplateSeqHelper
{
/**
* The type code, computed once.
*/
static TypeCode typecode;
/**
* Extract the <code>ObjectReferenceTemplate[]</code> from the given
* {@link Any}. This implementation expects the {@link Any} to hold the
@@ -142,15 +137,11 @@ public abstract class ObjectReferenceTemplateSeqHelper
*/
public static TypeCode type()
{
if (typecode == null)
{
GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_sequence);
t.setId(id());
t.setLength(0);
t.setContentType(ObjectReferenceTemplateHelper.type());
typecode = t;
}
return typecode;
GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_sequence);
t.setId(id());
t.setLength(0);
t.setContentType(ObjectReferenceTemplateHelper.type());
return t;
}
/**
@@ -38,6 +38,8 @@ exception statement from your version. */
package org.omg.PortableServer;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.NO_IMPLEMENT;
@@ -61,7 +63,7 @@ public abstract class CurrentHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "Current");
return OrbRestricted.Singleton.create_interface_tc(id(), "Current");
}
/**
@@ -40,6 +40,7 @@ package org.omg.PortableServer.CurrentPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -58,26 +59,19 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class NoContextHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the NoContext typecode (structure,
* named "NoContext").
* Create the NoContext typecode (structure, named "NoContext").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "NoContext", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[0];
return orb.create_exception_tc(id(), "NoContext", members);
}
/* Every user exception with no user defined fields can use EmptyExceptionHolder */
/*
* Every user exception with no user defined fields can use
* EmptyExceptionHolder
*/
/**
* Insert the NoContext into the given Any.
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableServer;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import gnu.CORBA.Poa.ForwardRequestHolder;
import org.omg.CORBA.Any;
@@ -61,11 +62,6 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class ForwardRequestHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Extract the ForwardRequest from given Any.
* This method uses the ForwardRequestHolder.
@@ -132,18 +128,14 @@ public abstract class ForwardRequestHelper
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 1 ];
TypeCode field;
field = ObjectHelper.type();
members [ 0 ] = new StructMember("forward_reference", field, null);
typeCode = orb.create_exception_tc(id(), "ForwardRequest", members);
}
return typeCode;
return orb.create_exception_tc(id(), "ForwardRequest", members);
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableServer;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;
@@ -80,7 +81,7 @@ public abstract class POAHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "POA");
return OrbRestricted.Singleton.create_interface_tc(id(), "POA");
}
/**
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAManagerPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -57,24 +58,15 @@ import org.omg.CORBA.portable.OutputStream;
*/
public abstract class AdapterInactiveHelper
{
/**
* The cached typecode value, computed only once.
*/
private static TypeCode typeCode;
/**
* Create the AdapterInactive typecode (structure,
* named "AdapterInactive").
*/
public static TypeCode type()
{
if (typeCode == null)
{
ORB orb = ORB.init();
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "AdapterInactive", members);
}
return typeCode;
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
return orb.create_exception_tc(id(), "AdapterInactive", members);
}
/* Every user exception with no user defined
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class AdapterAlreadyExistsHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode =
orb.create_exception_tc(id(), "AdapterAlreadyExists", members);
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class AdapterNonExistentHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "AdapterNonExistent", members);
}
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableServer.POAPackage;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import gnu.CORBA.Poa.InvalidPolicyHolder;
import org.omg.CORBA.Any;
@@ -72,7 +73,7 @@ public abstract class InvalidPolicyHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 1 ];
TypeCode field;
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class NoServantHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "NoServant", members);
}
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class ObjectAlreadyActiveHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode =
orb.create_exception_tc(id(), "ObjectAlreadyActive", members);
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class ObjectNotActiveHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "ObjectNotActive", members);
}
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class ServantAlreadyActiveHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode =
orb.create_exception_tc(id(), "ServantAlreadyActive", members);
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class ServantNotActiveHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "ServantNotActive", members);
}
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class WrongAdapterHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "WrongAdapter", members);
}
@@ -40,6 +40,7 @@ package org.omg.PortableServer.POAPackage;
import gnu.CORBA.EmptyExceptionHolder;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -70,7 +71,7 @@ public abstract class WrongPolicyHelper
{
if (typeCode == null)
{
ORB orb = ORB.init();
ORB orb = OrbRestricted.Singleton;
StructMember[] members = new StructMember[ 0 ];
typeCode = orb.create_exception_tc(id(), "WrongPolicy", members);
}
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableServer;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -61,7 +62,7 @@ public abstract class ServantActivatorHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "ServantActivator");
return OrbRestricted.Singleton.create_interface_tc(id(), "ServantActivator");
}
/**
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.PortableServer;
import gnu.CORBA.Minor;
import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -60,7 +61,7 @@ public abstract class ServantLocatorHelper
*/
public static TypeCode type()
{
return ORB.init().create_interface_tc(id(), "ServantLocator");
return OrbRestricted.Singleton.create_interface_tc(id(), "ServantLocator");
}
/**