corba/src/java.corba/share/classes/org/omg/CORBA/ORB.java
author msheppar
Thu, 09 Feb 2017 15:52:43 +0000
changeset 43737 b1a42dfc5eec
parent 43345 a3460624dc33
child 45144 a81f7f7ccb59
permissions -rw-r--r--
8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties Reviewed-by: lancea, alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
     2
 * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
package org.omg.CORBA;
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
import org.omg.CORBA.portable.*;
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
import org.omg.CORBA.ORBPackage.InvalidName;
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
import java.util.Properties;
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
import java.applet.Applet;
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
import java.io.File;
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
import java.io.FileInputStream;
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
import java.security.AccessController;
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
import java.security.PrivilegedAction;
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
 * A class providing APIs for the CORBA Object Request Broker
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    41
 * features.  The {@code ORB} class also provides
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
 * "pluggable ORB implementation" APIs that allow another vendor's ORB
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
 * implementation to be used.
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
 * An ORB makes it possible for CORBA objects to communicate
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
 * with each other by connecting objects making requests (clients) with
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
 * objects servicing requests (servers).
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
 *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    50
 * The {@code ORB} class, which
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
 * encapsulates generic CORBA functionality, does the following:
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
 * (Note that items 5 and 6, which include most of the methods in
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    53
 * the class {@code ORB}, are typically used with the
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    54
 * {@code Dynamic Invocation Interface} (DII) and
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    55
 * the {@code Dynamic Skeleton Interface} (DSI).
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
 * These interfaces may be used by a developer directly, but
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
 * most commonly they are used by the ORB internally and are
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
 * not seen by the general programmer.)
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
 * <OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
 * <li> initializes the ORB implementation by supplying values for
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
 *      predefined properties and environmental parameters
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
 * <li> obtains initial object references to services such as
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    63
 * the NameService using the method {@code resolve_initial_references}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
 * <li> converts object references to strings and back
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
 * <li> connects the ORB to a servant (an instance of a CORBA object
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
 * implementation) and disconnects the ORB from a servant
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
 * <li> creates objects such as
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
 *   <ul>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    69
 *   <li>{@code TypeCode}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    70
 *   <li>{@code Any}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    71
 *   <li>{@code NamedValue}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    72
 *   <li>{@code Context}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    73
 *   <li>{@code Environment}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    74
 *   <li>lists (such as {@code NVList}) containing these objects
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
 *   </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
 * <li> sends multiple messages in the DII
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
 * </OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
 * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    80
 * The {@code ORB} class can be used to obtain references to objects
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
 * implemented anywhere on the network.
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
 * An application or applet gains access to the CORBA environment
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    84
 * by initializing itself into an {@code ORB} using one of
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    85
 * three {@code init} methods.  Two of the three methods use the properties
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
 * (associations of a name with a value) shown in the
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
 * table below.<BR>
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
 * <TABLE BORDER=1 SUMMARY="Standard Java CORBA Properties">
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
 * <TR><TH>Property Name</TH>   <TH>Property Value</TH></TR>
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
 * <CAPTION>Standard Java CORBA Properties:</CAPTION>
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
 *     <TR><TD>org.omg.CORBA.ORBClass</TD>
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
 *     <TD>class name of an ORB implementation</TD></TR>
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
 *     <TR><TD>org.omg.CORBA.ORBSingletonClass</TD>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    94
 *     <TD>class name of the ORB returned by {@code init()}</TD></TR>
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
 * </TABLE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
 * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
    97
 * These properties allow a different vendor's {@code ORB}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
 * implementation to be "plugged in."
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
 * When an ORB instance is being created, the class name of the ORB
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
 * implementation is located using
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
   102
 * the following standard search order:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
 * <OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
 *     <LI>check in Applet parameter or application string array, if any
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
 *     <LI>check in properties parameter, if any
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
 *
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   109
 *     <LI>check in the System properties, if any
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
 *     <LI>check in the orb.properties file located in the user.home
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   112
 *         directory, if any
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
 *
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   114
 *     <LI>check in the orb.properties file located in the run-time image,
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   115
 *         if any
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
 *     <LI>fall back on a hardcoded default behavior (use the Java&nbsp;IDL
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
 *         implementation)
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
 * </OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
 * Note that Java&nbsp;IDL provides a default implementation for the
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
 * fully-functional ORB and for the Singleton ORB.  When the method
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   123
 * {@code init} is given no parameters, the default Singleton
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   124
 * ORB is returned.  When the method {@code init} is given parameters
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
 * but no ORB class is specified, the Java&nbsp;IDL ORB implementation
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
 * is returned.
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
 * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   128
 * The following code fragment creates an {@code ORB} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
 * initialized with the default ORB Singleton.
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
 * This ORB has a
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
 * restricted implementation to prevent malicious applets from doing
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
 * anything beyond creating typecodes.
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
 * It is called a singleton
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
 * because there is only one instance for an entire virtual machine.
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
 * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
 *    ORB orb = ORB.init();
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
 * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
 * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   139
 * The following code fragment creates an {@code ORB} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   140
 * for an application.  The parameter {@code args}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   141
 * represents the arguments supplied to the application's {@code main}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
 * method.  Since the property specifies the ORB class to be
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
 * "SomeORBImplementation", the new ORB will be initialized with
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
 * that ORB implementation.  If p had been null,
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
 * and the arguments had not specified an ORB class,
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
 * the new ORB would have been
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
 * initialized with the default Java&nbsp;IDL implementation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
 * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
 *    Properties p = new Properties();
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
 *    p.put("org.omg.CORBA.ORBClass", "SomeORBImplementation");
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
 *    ORB orb = ORB.init(args, p);
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
 * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
 * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   154
 * The following code fragment creates an {@code ORB} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
 * for the applet supplied as the first parameter.  If the given
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
 * applet does not specify an ORB class, the new ORB will be
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
 * initialized with the default Java&nbsp;IDL implementation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
 * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
 *    ORB orb = ORB.init(myApplet, null);
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
 * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
 * An application or applet can be initialized in one or more ORBs.
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
 * ORB initialization is a bootstrap call into the CORBA world.
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   164
 *
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   165
 *
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   166
 * @implNote
27519
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   167
 * When a singleton ORB is configured via the system property,
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   168
 * or orb.properties, it will be
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   169
 * located, and loaded via the system class loader.
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   170
 * Thus, where appropriate, it is necessary that
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   171
 * the classes for this alternative ORBSingleton are available on the application's class path.
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   172
 * It should be noted that the singleton ORB is system wide.
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   173
 * <P>
27519
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   174
 * When a per-application ORB is created via the 2-arg init methods,
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   175
 * then it will be located using the thread context class loader.
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   176
 * <P>
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   177
 * The IDL to Java Language OMG specification documents the ${java.home}/lib directory as the location,
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   178
 * in the Java run-time image, to search for orb.properties.
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   179
 * This location is not intended for user editable configuration files.
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   180
 * Therefore, the implementation first checks the ${java.home}/conf directory for orb.properties,
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   181
 * and thereafter the ${java.home}/lib directory.
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   182
 *
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
 * @since   JDK1.2
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
abstract public class ORB {
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
    // This is the ORB implementation used when nothing else is specified.
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
    // Whoever provides this class customizes this string to
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
    // point at their ORB implementation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
    private static final String ORBClassKey = "org.omg.CORBA.ORBClass";
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
    private static final String ORBSingletonClassKey = "org.omg.CORBA.ORBSingletonClass";
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
43345
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   195
    // check that access to the class is not restricted by the security manager.
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   196
    private static void checkPackageAccess(String name) {
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   197
        SecurityManager s = System.getSecurityManager();
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   198
        if (s != null) {
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   199
            String cname = name.replace('/', '.');
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   200
            if (cname.startsWith("[")) {
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   201
                int b = cname.lastIndexOf('[') + 2;
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   202
                if (b > 1 && b < cname.length()) {
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   203
                    cname = cname.substring(b);
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   204
                }
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   205
            }
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   206
            int i = cname.lastIndexOf('.');
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   207
            if (i != -1) {
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   208
                s.checkPackageAccess(cname.substring(0, i));
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   209
            }
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   210
        }
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   211
    }
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   212
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
    // The global instance of the singleton ORB implementation which
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
    // acts as a factory for typecodes for generated Helper classes.
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
    // TypeCodes should be immutable since they may be shared across
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
    // different security contexts (applets). There should be no way to
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
    // use a TypeCode as a storage depot for illicitly passing
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
    // information or Java objects between different security contexts.
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
    static private ORB singleton;
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
    // Get System property
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
    private static String getSystemProperty(final String name) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
        // This will not throw a SecurityException because this
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
        // class was loaded from rt.jar using the bootstrap classloader.
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
        String propValue = (String) AccessController.doPrivileged(
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
            new PrivilegedAction() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
                public java.lang.Object run() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
                    return System.getProperty(name);
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
        );
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
        return propValue;
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
    // Get property from orb.properties in either <user.home> or <java-home>/lib
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
    // directories.
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
    private static String getPropertyFromFile(final String name) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
        // This will not throw a SecurityException because this
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
        // class was loaded from rt.jar using the bootstrap classloader.
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
        String propValue = (String) AccessController.doPrivileged(
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
            new PrivilegedAction() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
                private Properties getFileProperties( String fileName ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
                    try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
                        File propFile = new File( fileName ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
                        if (!propFile.exists())
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
                            return null ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
                        Properties props = new Properties() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
                        FileInputStream fis = new FileInputStream(propFile);
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
                        try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
                            props.load( fis );
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
                        } finally {
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
                            fis.close() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
                        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
                        return props ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
                    } catch (Exception exc) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
                        return null ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
                    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
                public java.lang.Object run() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
                    String userHome = System.getProperty("user.home");
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
                    String fileName = userHome + File.separator +
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
                        "orb.properties" ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
                    Properties props = getFileProperties( fileName ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
                    if (props != null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
                        String value = props.getProperty( name ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
                        if (value != null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
                            return value ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
                    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
                    String javaHome = System.getProperty("java.home");
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   280
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   281
                    fileName = javaHome + File.separator + "conf"
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   282
                            + File.separator + "orb.properties";
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   283
                    props = getFileProperties(fileName);
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   284
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   285
                    if (props != null) {
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   286
                        String value = props.getProperty(name);
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   287
                        if (value != null)
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   288
                            return value;
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   289
                    }
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   290
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   291
                    fileName = javaHome + File.separator + "lib"
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   292
                            + File.separator + "orb.properties";
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   293
                    props = getFileProperties(fileName);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
                    if (props == null)
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   296
                        return null;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
                    else
43737
b1a42dfc5eec 8049375: Extend how the org.omg.CORBA.ORB handles the search for orb.properties
msheppar
parents: 43345
diff changeset
   298
                        return props.getProperty(name);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
        );
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
        return propValue;
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   307
     * Returns the {@code ORB} singleton object. This method always returns the
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
     * same ORB instance, which is an instance of the class described by the
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   309
     * {@code org.omg.CORBA.ORBSingletonClass} system property.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
     * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   311
     * This no-argument version of the method {@code init} is used primarily
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   312
     * as a factory for {@code TypeCode} objects, which are used by
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   313
     * {@code Helper} classes to implement the method {@code type}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   314
     * It is also used to create {@code Any} objects that are used to
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   315
     * describe {@code union} labels (as part of creating a
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   316
     * {@code TypeCode} object for a {@code union}).
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
     * This method is not intended to be used by applets, and in the event
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
     * that it is called in an applet environment, the ORB it returns
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
     * is restricted so that it can be used only as a factory for
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   321
     * {@code TypeCode} objects.  Any {@code TypeCode} objects
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
     * it produces can be safely shared among untrusted applets.
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
     * If an ORB is created using this method from an applet,
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
     * a system exception will be thrown if
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
     * methods other than those for
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   327
     * creating {@code TypeCode} objects are invoked.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
     * @return the singleton ORB
27519
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   330
     *
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   331
     * @implNote
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   332
     * When configured via the system property, or orb.properties,
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   333
     * the system-wide singleton ORB is located via the
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   334
     * system class loader.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
     */
2664
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   336
    public static synchronized ORB init() {
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
        if (singleton == null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
            String className = getSystemProperty(ORBSingletonClassKey);
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
            if (className == null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
                className = getPropertyFromFile(ORBSingletonClassKey);
21860
3ba29895d289 8028215: ORB.init fails with SecurityException if properties select the JDK default ORB
msheppar
parents: 21431
diff changeset
   341
            if ((className == null) ||
3ba29895d289 8028215: ORB.init fails with SecurityException if properties select the JDK default ORB
msheppar
parents: 21431
diff changeset
   342
                    (className.equals("com.sun.corba.se.impl.orb.ORBSingleton"))) {
21431
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   343
                singleton = new com.sun.corba.se.impl.orb.ORBSingleton();
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   344
            } else {
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   345
                singleton = create_impl_with_systemclassloader(className);
21431
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   346
            }
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
        return singleton;
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   351
   private static ORB create_impl_with_systemclassloader(String className) {
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   352
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   353
        try {
43345
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   354
            checkPackageAccess(className);
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   355
            ClassLoader cl = ClassLoader.getSystemClassLoader();
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   356
            Class<org.omg.CORBA.ORB> orbBaseClass = org.omg.CORBA.ORB.class;
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   357
            Class<?> singletonOrbClass = Class.forName(className, true, cl).asSubclass(orbBaseClass);
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   358
            return (ORB)singletonOrbClass.newInstance();
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   359
        } catch (Throwable ex) {
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   360
            SystemException systemException = new INITIALIZE(
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   361
                "can't instantiate default ORB implementation " + className);
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   362
            systemException.initCause(ex);
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   363
            throw systemException;
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   364
        }
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   365
    }
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   366
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
    private static ORB create_impl(String className) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
        if (cl == null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
            cl = ClassLoader.getSystemClassLoader();
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
        try {
43345
a3460624dc33 8170116: Remove qualified exports from java.base to java.corba
prappo
parents: 32688
diff changeset
   373
            checkPackageAccess(className);
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   374
            Class<org.omg.CORBA.ORB> orbBaseClass = org.omg.CORBA.ORB.class;
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   375
            Class<?> orbClass = Class.forName(className, true, cl).asSubclass(orbBaseClass);
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   376
            return (ORB)orbClass.newInstance();
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
        } catch (Throwable ex) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
            SystemException systemException = new INITIALIZE(
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
               "can't instantiate default ORB implementation " + className);
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
            systemException.initCause(ex);
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
            throw systemException;
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   386
     * Creates a new {@code ORB} instance for a standalone
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
     * application.  This method may be called from applications
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   388
     * only and returns a new fully functional {@code ORB} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
     * each time it is called.
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   390
     * @param args command-line arguments for the application's {@code main}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   391
     *             method; may be {@code null}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   392
     * @param props application-specific properties; may be {@code null}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
     * @return the newly-created ORB instance
27519
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   394
     *
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   395
     * @implNote
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   396
     * When configured via the system property, or orb.properties,
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   397
     * the ORB is located via the thread context class loader.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
    public static ORB init(String[] args, Properties props) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
        //
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
        // Note that there is no standard command-line argument for
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
        // specifying the default ORB implementation. For an
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
        // application you can choose an implementation either by
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
        // setting the CLASSPATH to pick a different org.omg.CORBA
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
        // and it's baked-in ORB implementation default or by
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
        // setting an entry in the properties object or in the
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
        // system properties.
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
        //
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
        String className = null;
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
        ORB orb;
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
        if (props != null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
            className = props.getProperty(ORBClassKey);
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
        if (className == null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
            className = getSystemProperty(ORBClassKey);
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
        if (className == null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
            className = getPropertyFromFile(ORBClassKey);
21860
3ba29895d289 8028215: ORB.init fails with SecurityException if properties select the JDK default ORB
msheppar
parents: 21431
diff changeset
   418
        if ((className == null) ||
3ba29895d289 8028215: ORB.init fails with SecurityException if properties select the JDK default ORB
msheppar
parents: 21431
diff changeset
   419
                    (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
21431
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   420
            orb = new com.sun.corba.se.impl.orb.ORBImpl();
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   421
        } else {
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   422
            orb = create_impl(className);
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   423
        }
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
        orb.set_parameters(args, props);
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
        return orb;
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   430
     * Creates a new {@code ORB} instance for an applet.  This
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
     * method may be called from applets only and returns a new
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   432
     * fully-functional {@code ORB} object each time it is called.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   433
     * @param app the applet; may be {@code null}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   434
     * @param props applet-specific properties; may be {@code null}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
     * @return the newly-created ORB instance
27519
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   436
     *
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   437
     * @implNote
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   438
     * When configured via the system property, or orb.properties,
a7ffe58455ea 8049522: Move @implNote in org.omg.CORBA.ORB to init method
msheppar
parents: 25862
diff changeset
   439
     * the ORB is located via the thread context class loader.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
    public static ORB init(Applet app, Properties props) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
        String className;
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
        ORB orb;
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
02bb8761fcce Initial load
duke
parents:
diff changeset
   445
        className = app.getParameter(ORBClassKey);
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
        if (className == null && props != null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
            className = props.getProperty(ORBClassKey);
02bb8761fcce Initial load
duke
parents:
diff changeset
   448
        if (className == null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
            className = getSystemProperty(ORBClassKey);
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
        if (className == null)
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
            className = getPropertyFromFile(ORBClassKey);
21860
3ba29895d289 8028215: ORB.init fails with SecurityException if properties select the JDK default ORB
msheppar
parents: 21431
diff changeset
   452
        if ((className == null) ||
3ba29895d289 8028215: ORB.init fails with SecurityException if properties select the JDK default ORB
msheppar
parents: 21431
diff changeset
   453
                    (className.equals("com.sun.corba.se.impl.orb.ORBImpl"))) {
21431
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   454
            orb = new com.sun.corba.se.impl.orb.ORBImpl();
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   455
        } else {
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   456
            orb = create_impl(className);
6f404f8e434c 8021257: com.sun.corba.se.** should be on restricted package list
alanb
parents: 7672
diff changeset
   457
        }
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
        orb.set_parameters(app, props);
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
        return orb;
02bb8761fcce Initial load
duke
parents:
diff changeset
   460
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   463
     * Allows the ORB implementation to be initialized with the given
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
     * parameters and properties. This method, used in applications only,
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
     * is implemented by subclass ORB implementations and called
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   466
     * by the appropriate {@code init} method to pass in its parameters.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   468
     * @param args command-line arguments for the application's {@code main}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   469
     *             method; may be {@code null}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   470
     * @param props application-specific properties; may be {@code null}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   471
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
    abstract protected void set_parameters(String[] args, Properties props);
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
     * Allows the ORB implementation to be initialized with the given
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
     * applet and parameters. This method, used in applets only,
02bb8761fcce Initial load
duke
parents:
diff changeset
   477
     * is implemented by subclass ORB implementations and called
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   478
     * by the appropriate {@code init} method to pass in its parameters.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   480
     * @param app the applet; may be {@code null}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   481
     * @param props applet-specific properties; may be {@code null}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   483
    abstract protected void set_parameters(Applet app, Properties props);
02bb8761fcce Initial load
duke
parents:
diff changeset
   484
02bb8761fcce Initial load
duke
parents:
diff changeset
   485
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   486
     * Connects the given servant object (a Java object that is
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
     * an instance of the server implementation class)
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
     * to the ORB. The servant class must
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   489
     * extend the {@code ImplBase} class corresponding to the interface that is
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
     * supported by the server. The servant must thus be a CORBA object
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   491
     * reference, and inherit from {@code org.omg.CORBA.Object}.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
     * Servants created by the user can start receiving remote invocations
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   493
     * after the method {@code connect} has been called. A servant may also be
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
     * automatically and implicitly connected to the ORB if it is passed as
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
     * an IDL parameter in an IDL method invocation on a non-local object,
02bb8761fcce Initial load
duke
parents:
diff changeset
   496
     * that is, if the servant object has to be marshalled and sent outside of the
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
     * process address space.
02bb8761fcce Initial load
duke
parents:
diff changeset
   498
     * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   499
     * Calling the method {@code connect} has no effect
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   500
     * when the servant object is already connected to the ORB.
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   502
     * Deprecated by the OMG in favor of the Portable Object Adapter APIs.
02bb8761fcce Initial load
duke
parents:
diff changeset
   503
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   504
     * @param obj The servant object reference
02bb8761fcce Initial load
duke
parents:
diff changeset
   505
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   506
    public void connect(org.omg.CORBA.Object obj) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   507
        throw new NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   508
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   509
02bb8761fcce Initial load
duke
parents:
diff changeset
   510
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   511
     * Destroys the ORB so that its resources can be reclaimed.
02bb8761fcce Initial load
duke
parents:
diff changeset
   512
     * Any operation invoked on a destroyed ORB reference will throw the
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   513
     * {@code OBJECT_NOT_EXIST} exception.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   514
     * Once an ORB has been destroyed, another call to {@code init}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   515
     * with the same ORBid will return a reference to a newly constructed ORB.<p>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   516
     * If {@code destroy} is called on an ORB that has not been shut down,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   517
     * it will start the shut down process and block until the ORB has shut down
02bb8761fcce Initial load
duke
parents:
diff changeset
   518
     * before it destroys the ORB.<br>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   519
     * If an application calls {@code destroy} in a thread that is currently servicing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   520
     * an invocation, the {@code BAD_INV_ORDER} system exception will be thrown
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   521
     * with the OMG minor code 3, since blocking would result in a deadlock.<p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   522
     * For maximum portability and to avoid resource leaks, an application should
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   523
     * always call {@code shutdown} and {@code destroy}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   524
     * on all ORB instances before exiting.
02bb8761fcce Initial load
duke
parents:
diff changeset
   525
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   526
     * @throws org.omg.CORBA.BAD_INV_ORDER if the current thread is servicing an invocation
02bb8761fcce Initial load
duke
parents:
diff changeset
   527
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   528
    public void destroy( ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   529
        throw new NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   530
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   531
02bb8761fcce Initial load
duke
parents:
diff changeset
   532
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   533
     * Disconnects the given servant object from the ORB. After this method returns,
02bb8761fcce Initial load
duke
parents:
diff changeset
   534
     * the ORB will reject incoming remote requests for the disconnected
02bb8761fcce Initial load
duke
parents:
diff changeset
   535
     * servant and will send the exception
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   536
     * {@code org.omg.CORBA.OBJECT_NOT_EXIST} back to the
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   537
     * remote client. Thus the object appears to be destroyed from the
02bb8761fcce Initial load
duke
parents:
diff changeset
   538
     * point of view of remote clients. Note, however, that local requests issued
02bb8761fcce Initial load
duke
parents:
diff changeset
   539
     * using the servant  directly do not
02bb8761fcce Initial load
duke
parents:
diff changeset
   540
     * pass through the ORB; hence, they will continue to be processed by the
02bb8761fcce Initial load
duke
parents:
diff changeset
   541
     * servant.
02bb8761fcce Initial load
duke
parents:
diff changeset
   542
     * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   543
     * Calling the method {@code disconnect} has no effect
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   544
     * if the servant is not connected to the ORB.
02bb8761fcce Initial load
duke
parents:
diff changeset
   545
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   546
     * Deprecated by the OMG in favor of the Portable Object Adapter APIs.
02bb8761fcce Initial load
duke
parents:
diff changeset
   547
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   548
     * @param obj The servant object to be disconnected from the ORB
02bb8761fcce Initial load
duke
parents:
diff changeset
   549
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   550
    public void disconnect(org.omg.CORBA.Object obj) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   551
        throw new NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   552
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   553
02bb8761fcce Initial load
duke
parents:
diff changeset
   554
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   555
    // ORB method implementations.
02bb8761fcce Initial load
duke
parents:
diff changeset
   556
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   557
    // We are trying to accomplish 2 things at once in this class.
02bb8761fcce Initial load
duke
parents:
diff changeset
   558
    // It can act as a default ORB implementation front-end,
02bb8761fcce Initial load
duke
parents:
diff changeset
   559
    // creating an actual ORB implementation object which is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   560
    // subclass of this ORB class and then delegating the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   561
    // implementations.
02bb8761fcce Initial load
duke
parents:
diff changeset
   562
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   563
    // To accomplish the delegation model, the 'delegate' private instance
02bb8761fcce Initial load
duke
parents:
diff changeset
   564
    // variable is set if an instance of this class is created directly.
02bb8761fcce Initial load
duke
parents:
diff changeset
   565
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   566
02bb8761fcce Initial load
duke
parents:
diff changeset
   567
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   568
     * Returns a list of the initially available CORBA object references,
02bb8761fcce Initial load
duke
parents:
diff changeset
   569
     * such as "NameService" and "InterfaceRepository".
02bb8761fcce Initial load
duke
parents:
diff changeset
   570
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   571
     * @return an array of {@code String} objects that represent
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   572
     *         the object references for CORBA services
02bb8761fcce Initial load
duke
parents:
diff changeset
   573
     *         that are initially available with this ORB
02bb8761fcce Initial load
duke
parents:
diff changeset
   574
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   575
    abstract public String[] list_initial_services();
02bb8761fcce Initial load
duke
parents:
diff changeset
   576
02bb8761fcce Initial load
duke
parents:
diff changeset
   577
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   578
     * Resolves a specific object reference from the set of available
02bb8761fcce Initial load
duke
parents:
diff changeset
   579
     * initial service names.
02bb8761fcce Initial load
duke
parents:
diff changeset
   580
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   581
     * @param object_name the name of the initial service as a string
02bb8761fcce Initial load
duke
parents:
diff changeset
   582
     * @return  the object reference associated with the given name
02bb8761fcce Initial load
duke
parents:
diff changeset
   583
     * @exception InvalidName if the given name is not associated with a
02bb8761fcce Initial load
duke
parents:
diff changeset
   584
     *                         known service
02bb8761fcce Initial load
duke
parents:
diff changeset
   585
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   586
    abstract public org.omg.CORBA.Object resolve_initial_references(String object_name)
02bb8761fcce Initial load
duke
parents:
diff changeset
   587
        throws InvalidName;
02bb8761fcce Initial load
duke
parents:
diff changeset
   588
02bb8761fcce Initial load
duke
parents:
diff changeset
   589
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   590
     * Converts the given CORBA object reference to a string.
02bb8761fcce Initial load
duke
parents:
diff changeset
   591
     * Note that the format of this string is predefined by IIOP, allowing
02bb8761fcce Initial load
duke
parents:
diff changeset
   592
     * strings generated by a different ORB to be converted back into an object
02bb8761fcce Initial load
duke
parents:
diff changeset
   593
     * reference.
02bb8761fcce Initial load
duke
parents:
diff changeset
   594
     * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   595
     * The resulting {@code String} object may be stored or communicated
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   596
     * in any way that a {@code String} object can be manipulated.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   597
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   598
     * @param obj the object reference to stringify
02bb8761fcce Initial load
duke
parents:
diff changeset
   599
     * @return the string representing the object reference
02bb8761fcce Initial load
duke
parents:
diff changeset
   600
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   601
    abstract public String object_to_string(org.omg.CORBA.Object obj);
02bb8761fcce Initial load
duke
parents:
diff changeset
   602
02bb8761fcce Initial load
duke
parents:
diff changeset
   603
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   604
     * Converts a string produced by the method {@code object_to_string}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   605
     * back to a CORBA object reference.
02bb8761fcce Initial load
duke
parents:
diff changeset
   606
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   607
     * @param str the string to be converted back to an object reference.  It must
02bb8761fcce Initial load
duke
parents:
diff changeset
   608
     * be the result of converting an object reference to a string using the
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   609
     * method {@code object_to_string}.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   610
     * @return the object reference
02bb8761fcce Initial load
duke
parents:
diff changeset
   611
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   612
    abstract public org.omg.CORBA.Object string_to_object(String str);
02bb8761fcce Initial load
duke
parents:
diff changeset
   613
02bb8761fcce Initial load
duke
parents:
diff changeset
   614
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   615
     * Allocates an {@code NVList} with (probably) enough
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   616
     * space for the specified number of {@code NamedValue} objects.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   617
     * Note that the specified size is only a hint to help with
02bb8761fcce Initial load
duke
parents:
diff changeset
   618
     * storage allocation and does not imply the maximum size of the list.
02bb8761fcce Initial load
duke
parents:
diff changeset
   619
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   620
     * @param count  suggested number of {@code NamedValue} objects for
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   621
     *               which to allocate space
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   622
     * @return the newly-created {@code NVList}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   623
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   624
     * @see NVList
02bb8761fcce Initial load
duke
parents:
diff changeset
   625
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   626
    abstract public NVList create_list(int count);
02bb8761fcce Initial load
duke
parents:
diff changeset
   627
02bb8761fcce Initial load
duke
parents:
diff changeset
   628
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   629
     * Creates an {@code NVList} initialized with argument
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   630
     * descriptions for the operation described in the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   631
     * {@code OperationDef} object.  This {@code OperationDef} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   632
     * is obtained from an Interface Repository. The arguments in the
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   633
     * returned {@code NVList} object are in the same order as in the
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   634
     * original IDL operation definition, which makes it possible for the list
02bb8761fcce Initial load
duke
parents:
diff changeset
   635
     * to be used in dynamic invocation requests.
02bb8761fcce Initial load
duke
parents:
diff changeset
   636
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   637
     * @param oper      the {@code OperationDef} object to use to create the list
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   638
     * @return          a newly-created {@code NVList} object containing
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   639
     * descriptions of the arguments to the method described in the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   640
     * {@code OperationDef} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   641
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   642
     * @see NVList
02bb8761fcce Initial load
duke
parents:
diff changeset
   643
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   644
    public NVList create_operation_list(org.omg.CORBA.Object oper)
02bb8761fcce Initial load
duke
parents:
diff changeset
   645
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   646
        // If we came here, it means that the actual ORB implementation
02bb8761fcce Initial load
duke
parents:
diff changeset
   647
        // did not have a create_operation_list(...CORBA.Object oper) method,
02bb8761fcce Initial load
duke
parents:
diff changeset
   648
        // so lets check if it has a create_operation_list(OperationDef oper)
02bb8761fcce Initial load
duke
parents:
diff changeset
   649
        // method.
02bb8761fcce Initial load
duke
parents:
diff changeset
   650
        try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   651
            // First try to load the OperationDef class
02bb8761fcce Initial load
duke
parents:
diff changeset
   652
            String opDefClassName = "org.omg.CORBA.OperationDef";
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   653
            Class<?> opDefClass = null;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   654
02bb8761fcce Initial load
duke
parents:
diff changeset
   655
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
02bb8761fcce Initial load
duke
parents:
diff changeset
   656
            if ( cl == null )
02bb8761fcce Initial load
duke
parents:
diff changeset
   657
                cl = ClassLoader.getSystemClassLoader();
02bb8761fcce Initial load
duke
parents:
diff changeset
   658
            // if this throws a ClassNotFoundException, it will be caught below.
02bb8761fcce Initial load
duke
parents:
diff changeset
   659
            opDefClass = Class.forName(opDefClassName, true, cl);
02bb8761fcce Initial load
duke
parents:
diff changeset
   660
02bb8761fcce Initial load
duke
parents:
diff changeset
   661
            // OK, we loaded OperationDef. Now try to get the
02bb8761fcce Initial load
duke
parents:
diff changeset
   662
            // create_operation_list(OperationDef oper) method.
23943
4f71a2486884 8025005: Enhance CORBA initializations
msheppar
parents: 21860
diff changeset
   663
            Class<?>[] argc = { opDefClass };
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   664
            java.lang.reflect.Method meth =
02bb8761fcce Initial load
duke
parents:
diff changeset
   665
                this.getClass().getMethod("create_operation_list", argc);
02bb8761fcce Initial load
duke
parents:
diff changeset
   666
02bb8761fcce Initial load
duke
parents:
diff changeset
   667
            // OK, the method exists, so invoke it and be happy.
5823
3ed9d501bfd8 6960831: fix CORBA build warnings
jjg
parents: 5555
diff changeset
   668
            java.lang.Object[] argx = { oper };
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   669
            return (org.omg.CORBA.NVList)meth.invoke(this, argx);
02bb8761fcce Initial load
duke
parents:
diff changeset
   670
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   671
        catch( java.lang.reflect.InvocationTargetException exs ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   672
            Throwable t = exs.getTargetException();
02bb8761fcce Initial load
duke
parents:
diff changeset
   673
            if (t instanceof Error) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   674
                throw (Error) t;
02bb8761fcce Initial load
duke
parents:
diff changeset
   675
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   676
            else if (t instanceof RuntimeException) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   677
                throw (RuntimeException) t;
02bb8761fcce Initial load
duke
parents:
diff changeset
   678
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   679
            else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   680
                throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   681
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   682
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   683
        catch( RuntimeException ex ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   684
            throw ex;
02bb8761fcce Initial load
duke
parents:
diff changeset
   685
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   686
        catch( Exception exr ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   687
            throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   688
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   689
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   690
02bb8761fcce Initial load
duke
parents:
diff changeset
   691
02bb8761fcce Initial load
duke
parents:
diff changeset
   692
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   693
     * Creates a {@code NamedValue} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   694
     * using the given name, value, and argument mode flags.
02bb8761fcce Initial load
duke
parents:
diff changeset
   695
     * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   696
     * A {@code NamedValue} object serves as (1) a parameter or return
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   697
     * value or (2) a context property.
02bb8761fcce Initial load
duke
parents:
diff changeset
   698
     * It may be used by itself or
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   699
     * as an element in an {@code NVList} object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   700
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   701
     * @param s  the name of the {@code NamedValue} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   702
     * @param any  the {@code Any} value to be inserted into the
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   703
     *             {@code NamedValue} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   704
     * @param flags  the argument mode flags for the {@code NamedValue}: one of
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   705
     * {@code ARG_IN.value}, {@code ARG_OUT.value},
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   706
     * or {@code ARG_INOUT.value}.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   707
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   708
     * @return  the newly-created {@code NamedValue} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   709
     * @see NamedValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   710
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   711
    abstract public NamedValue create_named_value(String s, Any any, int flags);
02bb8761fcce Initial load
duke
parents:
diff changeset
   712
02bb8761fcce Initial load
duke
parents:
diff changeset
   713
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   714
     * Creates an empty {@code ExceptionList} object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   715
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   716
     * @return  the newly-created {@code ExceptionList} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   717
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   718
    abstract public ExceptionList create_exception_list();
02bb8761fcce Initial load
duke
parents:
diff changeset
   719
02bb8761fcce Initial load
duke
parents:
diff changeset
   720
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   721
     * Creates an empty {@code ContextList} object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   722
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   723
     * @return  the newly-created {@code ContextList} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   724
     * @see ContextList
02bb8761fcce Initial load
duke
parents:
diff changeset
   725
     * @see Context
02bb8761fcce Initial load
duke
parents:
diff changeset
   726
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   727
    abstract public ContextList create_context_list();
02bb8761fcce Initial load
duke
parents:
diff changeset
   728
02bb8761fcce Initial load
duke
parents:
diff changeset
   729
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   730
     * Gets the default {@code Context} object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   731
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   732
     * @return the default {@code Context} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   733
     * @see Context
02bb8761fcce Initial load
duke
parents:
diff changeset
   734
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   735
    abstract public Context get_default_context();
02bb8761fcce Initial load
duke
parents:
diff changeset
   736
02bb8761fcce Initial load
duke
parents:
diff changeset
   737
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   738
     * Creates an {@code Environment} object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   739
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   740
     * @return  the newly-created {@code Environment} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   741
     * @see Environment
02bb8761fcce Initial load
duke
parents:
diff changeset
   742
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   743
    abstract public Environment create_environment();
02bb8761fcce Initial load
duke
parents:
diff changeset
   744
02bb8761fcce Initial load
duke
parents:
diff changeset
   745
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   746
     * Creates a new {@code org.omg.CORBA.portable.OutputStream} into which
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   747
     * IDL method parameters can be marshalled during method invocation.
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   748
     * @return  the newly-created
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   749
     *          {@code org.omg.CORBA.portable.OutputStream} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   750
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   751
    abstract public org.omg.CORBA.portable.OutputStream create_output_stream();
02bb8761fcce Initial load
duke
parents:
diff changeset
   752
02bb8761fcce Initial load
duke
parents:
diff changeset
   753
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   754
     * Sends multiple dynamic (DII) requests asynchronously without expecting
02bb8761fcce Initial load
duke
parents:
diff changeset
   755
     * any responses. Note that oneway invocations are not guaranteed to
02bb8761fcce Initial load
duke
parents:
diff changeset
   756
     * reach the server.
02bb8761fcce Initial load
duke
parents:
diff changeset
   757
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   758
     * @param req  an array of request objects
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   759
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   760
    abstract public void send_multiple_requests_oneway(Request[] req);
02bb8761fcce Initial load
duke
parents:
diff changeset
   761
02bb8761fcce Initial load
duke
parents:
diff changeset
   762
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   763
     * Sends multiple dynamic (DII) requests asynchronously.
02bb8761fcce Initial load
duke
parents:
diff changeset
   764
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   765
     * @param req  an array of {@code Request} objects
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   766
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   767
    abstract public void send_multiple_requests_deferred(Request[] req);
02bb8761fcce Initial load
duke
parents:
diff changeset
   768
02bb8761fcce Initial load
duke
parents:
diff changeset
   769
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   770
     * Finds out if any of the deferred (asynchronous) invocations have
02bb8761fcce Initial load
duke
parents:
diff changeset
   771
     * a response yet.
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   772
     * @return {@code true} if there is a response available;
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   773
     *         {@code false} otherwise
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   774
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   775
    abstract public boolean poll_next_response();
02bb8761fcce Initial load
duke
parents:
diff changeset
   776
02bb8761fcce Initial load
duke
parents:
diff changeset
   777
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   778
     * Gets the next {@code Request} instance for which a response
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   779
     * has been received.
02bb8761fcce Initial load
duke
parents:
diff changeset
   780
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   781
     * @return the next {@code Request} object ready with a response
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   782
     * @exception WrongTransaction if the method {@code get_next_response}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   783
     * is called from a transaction scope different
02bb8761fcce Initial load
duke
parents:
diff changeset
   784
     * from the one from which the original request was sent. See the
02bb8761fcce Initial load
duke
parents:
diff changeset
   785
     * OMG Transaction Service specification for details.
02bb8761fcce Initial load
duke
parents:
diff changeset
   786
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   787
    abstract public Request get_next_response() throws WrongTransaction;
02bb8761fcce Initial load
duke
parents:
diff changeset
   788
02bb8761fcce Initial load
duke
parents:
diff changeset
   789
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   790
     * Retrieves the {@code TypeCode} object that represents
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   791
     * the given primitive IDL type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   792
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   793
     * @param tcKind    the {@code TCKind} instance corresponding to the
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   794
     *                  desired primitive type
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   795
     * @return          the requested {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   796
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   797
    abstract public TypeCode get_primitive_tc(TCKind tcKind);
02bb8761fcce Initial load
duke
parents:
diff changeset
   798
02bb8761fcce Initial load
duke
parents:
diff changeset
   799
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   800
     * Creates a {@code TypeCode} object representing an IDL {@code struct}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   801
     * The {@code TypeCode} object is initialized with the given id,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   802
     * name, and members.
02bb8761fcce Initial load
duke
parents:
diff changeset
   803
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   804
     * @param id        the repository id for the {@code struct}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   805
     * @param name      the name of the {@code struct}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   806
     * @param members   an array describing the members of the {@code struct}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   807
     * @return          a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   808
     *                  an IDL {@code struct}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   809
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   810
    abstract public TypeCode create_struct_tc(String id, String name,
02bb8761fcce Initial load
duke
parents:
diff changeset
   811
                                              StructMember[] members);
02bb8761fcce Initial load
duke
parents:
diff changeset
   812
02bb8761fcce Initial load
duke
parents:
diff changeset
   813
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   814
     * Creates a {@code TypeCode} object representing an IDL {@code union}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   815
     * The {@code TypeCode} object is initialized with the given id,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   816
     * name, discriminator type, and members.
02bb8761fcce Initial load
duke
parents:
diff changeset
   817
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   818
     * @param id        the repository id of the {@code union}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   819
     * @param name      the name of the {@code union}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   820
     * @param discriminator_type        the type of the {@code union} discriminator
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   821
     * @param members   an array describing the members of the {@code union}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   822
     * @return          a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   823
     *                  an IDL {@code union}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   824
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   825
    abstract public TypeCode create_union_tc(String id, String name,
02bb8761fcce Initial load
duke
parents:
diff changeset
   826
                                             TypeCode discriminator_type,
02bb8761fcce Initial load
duke
parents:
diff changeset
   827
                                             UnionMember[] members);
02bb8761fcce Initial load
duke
parents:
diff changeset
   828
02bb8761fcce Initial load
duke
parents:
diff changeset
   829
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   830
     * Creates a {@code TypeCode} object representing an IDL {@code enum}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   831
     * The {@code TypeCode} object is initialized with the given id,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   832
     * name, and members.
02bb8761fcce Initial load
duke
parents:
diff changeset
   833
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   834
     * @param id        the repository id for the {@code enum}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   835
     * @param name      the name for the {@code enum}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   836
     * @param members   an array describing the members of the {@code enum}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   837
     * @return          a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   838
     *                  an IDL {@code enum}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   839
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   840
    abstract public TypeCode create_enum_tc(String id, String name, String[] members);
02bb8761fcce Initial load
duke
parents:
diff changeset
   841
02bb8761fcce Initial load
duke
parents:
diff changeset
   842
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   843
     * Creates a {@code TypeCode} object representing an IDL {@code alias}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   844
     * ({@code typedef}).
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   845
     * The {@code TypeCode} object is initialized with the given id,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   846
     * name, and original type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   847
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   848
     * @param id        the repository id for the alias
02bb8761fcce Initial load
duke
parents:
diff changeset
   849
     * @param name      the name for the alias
02bb8761fcce Initial load
duke
parents:
diff changeset
   850
     * @param original_type
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   851
     *                  the {@code TypeCode} object describing the original type
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   852
     *                  for which this is an alias
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   853
     * @return          a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   854
     *                  an IDL {@code alias}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   855
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   856
    abstract public TypeCode create_alias_tc(String id, String name,
02bb8761fcce Initial load
duke
parents:
diff changeset
   857
                                             TypeCode original_type);
02bb8761fcce Initial load
duke
parents:
diff changeset
   858
02bb8761fcce Initial load
duke
parents:
diff changeset
   859
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   860
     * Creates a {@code TypeCode} object representing an IDL {@code exception}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   861
     * The {@code TypeCode} object is initialized with the given id,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   862
     * name, and members.
02bb8761fcce Initial load
duke
parents:
diff changeset
   863
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   864
     * @param id        the repository id for the {@code exception}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   865
     * @param name      the name for the {@code exception}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   866
     * @param members   an array describing the members of the {@code exception}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   867
     * @return          a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   868
     *                  an IDL {@code exception}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   869
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   870
    abstract public TypeCode create_exception_tc(String id, String name,
02bb8761fcce Initial load
duke
parents:
diff changeset
   871
                                                 StructMember[] members);
02bb8761fcce Initial load
duke
parents:
diff changeset
   872
02bb8761fcce Initial load
duke
parents:
diff changeset
   873
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   874
     * Creates a {@code TypeCode} object representing an IDL {@code interface}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   875
     * The {@code TypeCode} object is initialized with the given id
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   876
     * and name.
02bb8761fcce Initial load
duke
parents:
diff changeset
   877
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   878
     * @param id    the repository id for the interface
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   879
     * @param name  the name for the interface
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   880
     * @return      a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   881
     *              an IDL {@code interface}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   882
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   883
02bb8761fcce Initial load
duke
parents:
diff changeset
   884
    abstract public TypeCode create_interface_tc(String id, String name);
02bb8761fcce Initial load
duke
parents:
diff changeset
   885
02bb8761fcce Initial load
duke
parents:
diff changeset
   886
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   887
     * Creates a {@code TypeCode} object representing a bounded IDL
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   888
     * {@code string}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   889
     * The {@code TypeCode} object is initialized with the given bound,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   890
     * which represents the maximum length of the string. Zero indicates
02bb8761fcce Initial load
duke
parents:
diff changeset
   891
     * that the string described by this type code is unbounded.
02bb8761fcce Initial load
duke
parents:
diff changeset
   892
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   893
     * @param bound the bound for the {@code string}; cannot be negative
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   894
     * @return      a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   895
     *              a bounded IDL {@code string}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   896
     * @exception BAD_PARAM if bound is a negative value
02bb8761fcce Initial load
duke
parents:
diff changeset
   897
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   898
02bb8761fcce Initial load
duke
parents:
diff changeset
   899
    abstract public TypeCode create_string_tc(int bound);
02bb8761fcce Initial load
duke
parents:
diff changeset
   900
02bb8761fcce Initial load
duke
parents:
diff changeset
   901
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   902
     * Creates a {@code TypeCode} object representing a bounded IDL
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   903
     * {@code wstring} (wide string).
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   904
     * The {@code TypeCode} object is initialized with the given bound,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   905
     * which represents the maximum length of the wide string. Zero indicates
02bb8761fcce Initial load
duke
parents:
diff changeset
   906
     * that the string described by this type code is unbounded.
02bb8761fcce Initial load
duke
parents:
diff changeset
   907
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   908
     * @param bound the bound for the {@code wstring}; cannot be negative
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   909
     * @return      a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   910
     *              a bounded IDL {@code wstring}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   911
     * @exception BAD_PARAM if bound is a negative value
02bb8761fcce Initial load
duke
parents:
diff changeset
   912
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   913
    abstract public TypeCode create_wstring_tc(int bound);
02bb8761fcce Initial load
duke
parents:
diff changeset
   914
02bb8761fcce Initial load
duke
parents:
diff changeset
   915
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   916
     * Creates a {@code TypeCode} object representing an IDL {@code sequence}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   917
     * The {@code TypeCode} object is initialized with the given bound and
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   918
     * element type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   919
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   920
     * @param bound     the bound for the {@code sequence}, 0 if unbounded
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   921
     * @param element_type the {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   922
     *        the elements contained in the {@code sequence}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   923
     *
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   924
     * @return  a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   925
     *          an IDL {@code sequence}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   926
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   927
    abstract public TypeCode create_sequence_tc(int bound, TypeCode element_type);
02bb8761fcce Initial load
duke
parents:
diff changeset
   928
02bb8761fcce Initial load
duke
parents:
diff changeset
   929
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   930
     * Creates a {@code TypeCode} object representing a
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   931
     * a recursive IDL {@code sequence}.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   932
     * <P>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   933
     * For the IDL {@code struct} Node in following code fragment,
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   934
     * the offset parameter for creating its sequence would be 1:
02bb8761fcce Initial load
duke
parents:
diff changeset
   935
     * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   936
     *    Struct Node {
02bb8761fcce Initial load
duke
parents:
diff changeset
   937
     *        long value;
02bb8761fcce Initial load
duke
parents:
diff changeset
   938
     *        Sequence &lt;Node&gt; subnodes;
02bb8761fcce Initial load
duke
parents:
diff changeset
   939
     *    };
02bb8761fcce Initial load
duke
parents:
diff changeset
   940
     * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
   941
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   942
     * @param bound     the bound for the sequence, 0 if unbounded
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   943
     * @param offset    the index to the enclosing {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   944
     *                  that describes the elements of this sequence
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   945
     * @return          a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   946
     *                  a recursive sequence
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   947
     * @deprecated Use a combination of create_recursive_tc and create_sequence_tc instead
02bb8761fcce Initial load
duke
parents:
diff changeset
   948
     * @see #create_recursive_tc(String) create_recursive_tc
02bb8761fcce Initial load
duke
parents:
diff changeset
   949
     * @see #create_sequence_tc(int, TypeCode) create_sequence_tc
02bb8761fcce Initial load
duke
parents:
diff changeset
   950
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   951
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
   952
    abstract public TypeCode create_recursive_sequence_tc(int bound, int offset);
02bb8761fcce Initial load
duke
parents:
diff changeset
   953
02bb8761fcce Initial load
duke
parents:
diff changeset
   954
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   955
     * Creates a {@code TypeCode} object representing an IDL {@code array}.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   956
     * The {@code TypeCode} object is initialized with the given length and
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   957
     * element type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   958
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   959
     * @param length    the length of the {@code array}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   960
     * @param element_type  a {@code TypeCode} object describing the type
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   961
     *                      of element contained in the {@code array}
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   962
     * @return  a newly-created {@code TypeCode} object describing
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   963
     *          an IDL {@code array}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   964
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   965
    abstract public TypeCode create_array_tc(int length, TypeCode element_type);
02bb8761fcce Initial load
duke
parents:
diff changeset
   966
02bb8761fcce Initial load
duke
parents:
diff changeset
   967
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   968
     * Create a {@code TypeCode} object for an IDL native type.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   969
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   970
     * @param id        the logical id for the native type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   971
     * @param name      the name of the native type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   972
     * @return          the requested TypeCode.
02bb8761fcce Initial load
duke
parents:
diff changeset
   973
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   974
    public org.omg.CORBA.TypeCode create_native_tc(String id,
02bb8761fcce Initial load
duke
parents:
diff changeset
   975
                                                   String name)
02bb8761fcce Initial load
duke
parents:
diff changeset
   976
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   977
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   978
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   979
02bb8761fcce Initial load
duke
parents:
diff changeset
   980
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   981
     * Create a {@code TypeCode} object for an IDL abstract interface.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   982
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   983
     * @param id        the logical id for the abstract interface type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   984
     * @param name      the name of the abstract interface type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   985
     * @return          the requested TypeCode.
02bb8761fcce Initial load
duke
parents:
diff changeset
   986
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   987
    public org.omg.CORBA.TypeCode create_abstract_interface_tc(
02bb8761fcce Initial load
duke
parents:
diff changeset
   988
                                                               String id,
02bb8761fcce Initial load
duke
parents:
diff changeset
   989
                                                               String name)
02bb8761fcce Initial load
duke
parents:
diff changeset
   990
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   991
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
   992
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   993
02bb8761fcce Initial load
duke
parents:
diff changeset
   994
02bb8761fcce Initial load
duke
parents:
diff changeset
   995
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   996
     * Create a {@code TypeCode} object for an IDL fixed type.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   997
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   998
     * @param digits    specifies the total number of decimal digits in the number
02bb8761fcce Initial load
duke
parents:
diff changeset
   999
     *                  and must be from 1 to 31 inclusive.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1000
     * @param scale     specifies the position of the decimal point.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1001
     * @return          the requested TypeCode.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1002
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1003
    public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1004
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1005
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1006
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1007
02bb8761fcce Initial load
duke
parents:
diff changeset
  1008
02bb8761fcce Initial load
duke
parents:
diff changeset
  1009
    // orbos 98-01-18: Objects By Value -- begin
02bb8761fcce Initial load
duke
parents:
diff changeset
  1010
02bb8761fcce Initial load
duke
parents:
diff changeset
  1011
02bb8761fcce Initial load
duke
parents:
diff changeset
  1012
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1013
     * Create a {@code TypeCode} object for an IDL value type.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1014
     * The concrete_base parameter is the TypeCode for the immediate
02bb8761fcce Initial load
duke
parents:
diff changeset
  1015
     * concrete valuetype base of the valuetype for which the TypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1016
     * is being created.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1017
     * It may be null if the valuetype does not have a concrete base.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1018
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1019
     * @param id                 the logical id for the value type.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1020
     * @param name               the name of the value type.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1021
     * @param type_modifier      one of the value type modifier constants:
02bb8761fcce Initial load
duke
parents:
diff changeset
  1022
     *                           VM_NONE, VM_CUSTOM, VM_ABSTRACT or VM_TRUNCATABLE
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1023
     * @param concrete_base      a {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1024
     *                           describing the concrete valuetype base
02bb8761fcce Initial load
duke
parents:
diff changeset
  1025
     * @param members            an array containing the members of the value type
02bb8761fcce Initial load
duke
parents:
diff changeset
  1026
     * @return                   the requested TypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1027
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1028
    public org.omg.CORBA.TypeCode create_value_tc(String id,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1029
                                                  String name,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1030
                                                  short type_modifier,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1031
                                                  TypeCode concrete_base,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1032
                                                  ValueMember[] members)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1033
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1034
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1035
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1036
02bb8761fcce Initial load
duke
parents:
diff changeset
  1037
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1038
     * Create a recursive {@code TypeCode} object which
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1039
     * serves as a placeholder for a concrete TypeCode during the process of creating
02bb8761fcce Initial load
duke
parents:
diff changeset
  1040
     * TypeCodes which contain recursion. The id parameter specifies the repository id of
02bb8761fcce Initial load
duke
parents:
diff changeset
  1041
     * the type for which the recursive TypeCode is serving as a placeholder. Once the
02bb8761fcce Initial load
duke
parents:
diff changeset
  1042
     * recursive TypeCode has been properly embedded in the enclosing TypeCode which
02bb8761fcce Initial load
duke
parents:
diff changeset
  1043
     * corresponds to the specified repository id, it will function as a normal TypeCode.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1044
     * Invoking operations on the recursive TypeCode before it has been embedded in the
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1045
     * enclosing TypeCode will result in a {@code BAD_TYPECODE} exception.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1046
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1047
     * For example, the following IDL type declaration contains recursion:
02bb8761fcce Initial load
duke
parents:
diff changeset
  1048
     * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1049
     *    Struct Node {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1050
     *        Sequence&lt;Node&gt; subnodes;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1051
     *    };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1052
     * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1053
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1054
     * To create a TypeCode for struct Node, you would invoke the TypeCode creation
02bb8761fcce Initial load
duke
parents:
diff changeset
  1055
     * operations as shown below:
02bb8761fcce Initial load
duke
parents:
diff changeset
  1056
     * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1057
     * String nodeID = "IDL:Node:1.0";
02bb8761fcce Initial load
duke
parents:
diff changeset
  1058
     * TypeCode recursiveSeqTC = orb.create_sequence_tc(0, orb.create_recursive_tc(nodeID));
02bb8761fcce Initial load
duke
parents:
diff changeset
  1059
     * StructMember[] members = { new StructMember("subnodes", recursiveSeqTC, null) };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1060
     * TypeCode structNodeTC = orb.create_struct_tc(nodeID, "Node", members);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1061
     * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1062
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1063
     * Also note that the following is an illegal IDL type declaration:
02bb8761fcce Initial load
duke
parents:
diff changeset
  1064
     * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1065
     *    Struct Node {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1066
     *        Node next;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1067
     *    };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1068
     * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1069
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1070
     * Recursive types can only appear within sequences which can be empty.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1071
     * That way marshaling problems, when transmitting the struct in an Any, are avoided.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1072
     *
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1073
     * @param id                 the logical id of the referenced type
02bb8761fcce Initial load
duke
parents:
diff changeset
  1074
     * @return                   the requested TypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1075
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1076
    public org.omg.CORBA.TypeCode create_recursive_tc(String id) {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1077
        // implemented in subclass
02bb8761fcce Initial load
duke
parents:
diff changeset
  1078
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1079
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1080
02bb8761fcce Initial load
duke
parents:
diff changeset
  1081
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1082
     * Creates a {@code TypeCode} object for an IDL value box.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1083
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1084
     * @param id                 the logical id for the value type
02bb8761fcce Initial load
duke
parents:
diff changeset
  1085
     * @param name               the name of the value type
02bb8761fcce Initial load
duke
parents:
diff changeset
  1086
     * @param boxed_type         the TypeCode for the type
02bb8761fcce Initial load
duke
parents:
diff changeset
  1087
     * @return                   the requested TypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1088
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1089
    public org.omg.CORBA.TypeCode create_value_box_tc(String id,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1090
                                                      String name,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1091
                                                      TypeCode boxed_type)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1092
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1093
        // implemented in subclass
02bb8761fcce Initial load
duke
parents:
diff changeset
  1094
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1095
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1096
02bb8761fcce Initial load
duke
parents:
diff changeset
  1097
    // orbos 98-01-18: Objects By Value -- end
02bb8761fcce Initial load
duke
parents:
diff changeset
  1098
02bb8761fcce Initial load
duke
parents:
diff changeset
  1099
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1100
     * Creates an IDL {@code Any} object initialized to
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1101
     * contain a {@code Typecode} object whose {@code kind} field
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1102
     * is set to {@code TCKind.tc_null}.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1103
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1104
     * @return          a newly-created {@code Any} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1105
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1106
    abstract public Any create_any();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1107
02bb8761fcce Initial load
duke
parents:
diff changeset
  1108
02bb8761fcce Initial load
duke
parents:
diff changeset
  1109
02bb8761fcce Initial load
duke
parents:
diff changeset
  1110
02bb8761fcce Initial load
duke
parents:
diff changeset
  1111
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1112
     * Retrieves a {@code Current} object.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1113
     * The {@code Current} interface is used to manage thread-specific
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1114
     * information for use by services such as transactions and security.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1115
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1116
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1117
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1118
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1119
     * @return          a newly-created {@code Current} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1120
     * @deprecated      use {@code resolve_initial_references}.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1121
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1122
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1123
    public org.omg.CORBA.Current get_current()
02bb8761fcce Initial load
duke
parents:
diff changeset
  1124
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1125
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1126
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1127
02bb8761fcce Initial load
duke
parents:
diff changeset
  1128
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1129
     * This operation blocks the current thread until the ORB has
02bb8761fcce Initial load
duke
parents:
diff changeset
  1130
     * completed the shutdown process, initiated when some thread calls
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1131
     * {@code shutdown}. It may be used by multiple threads which
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1132
     * get all notified when the ORB shuts down.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1133
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1134
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1135
    public void run()
02bb8761fcce Initial load
duke
parents:
diff changeset
  1136
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1137
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1138
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1139
02bb8761fcce Initial load
duke
parents:
diff changeset
  1140
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1141
     * Instructs the ORB to shut down, which causes all
02bb8761fcce Initial load
duke
parents:
diff changeset
  1142
     * object adapters to shut down, in preparation for destruction.<br>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1143
     * If the {@code wait_for_completion} parameter
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1144
     * is true, this operation blocks until all ORB processing (including
02bb8761fcce Initial load
duke
parents:
diff changeset
  1145
     * processing of currently executing requests, object deactivation,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1146
     * and other object adapter operations) has completed.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1147
     * If an application does this in a thread that is currently servicing
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1148
     * an invocation, the {@code BAD_INV_ORDER} system exception
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1149
     * will be thrown with the OMG minor code 3,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1150
     * since blocking would result in a deadlock.<br>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1151
     * If the {@code wait_for_completion} parameter is {@code FALSE},
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1152
     * then shutdown may not have completed upon return.<p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1153
     * While the ORB is in the process of shutting down, the ORB operates as normal,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1154
     * servicing incoming and outgoing requests until all requests have been completed.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1155
     * Once an ORB has shutdown, only object reference management operations
02bb8761fcce Initial load
duke
parents:
diff changeset
  1156
     * may be invoked on the ORB or any object reference obtained from it.
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1157
     * An application may also invoke the {@code destroy} operation on the ORB itself.
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1158
     * Invoking any other operation will throw the {@code BAD_INV_ORDER}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1159
     * system exception with the OMG minor code 4.<p>
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1160
     * The {@code ORB.run} method will return after
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1161
     * {@code shutdown} has been called.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1162
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1163
     * @param wait_for_completion {@code true} if the call
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1164
     *        should block until the shutdown is complete;
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1165
     *        {@code false} if it should return immediately
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1166
     * @throws org.omg.CORBA.BAD_INV_ORDER if the current thread is servicing
02bb8761fcce Initial load
duke
parents:
diff changeset
  1167
     *         an invocation
02bb8761fcce Initial load
duke
parents:
diff changeset
  1168
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1169
    public void shutdown(boolean wait_for_completion)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1170
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1171
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1172
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1173
02bb8761fcce Initial load
duke
parents:
diff changeset
  1174
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1175
     * Returns {@code true} if the ORB needs the main thread to
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1176
     * perform some work, and {@code false} if the ORB does not
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1177
     * need the main thread.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1178
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1179
     * @return {@code true} if there is work pending, meaning that the ORB
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1180
     *         needs the main thread to perform some work; {@code false}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1181
     *         if there is no work pending and thus the ORB does not need the
02bb8761fcce Initial load
duke
parents:
diff changeset
  1182
     *         main thread
02bb8761fcce Initial load
duke
parents:
diff changeset
  1183
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1184
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1185
    public boolean work_pending()
02bb8761fcce Initial load
duke
parents:
diff changeset
  1186
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1187
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1188
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1189
02bb8761fcce Initial load
duke
parents:
diff changeset
  1190
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1191
     * Performs an implementation-dependent unit of work if called
02bb8761fcce Initial load
duke
parents:
diff changeset
  1192
     * by the main thread. Otherwise it does nothing.
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1193
     * The methods {@code work_pending} and {@code perform_work}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1194
     * can be used in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1195
     * conjunction to implement a simple polling loop that multiplexes
02bb8761fcce Initial load
duke
parents:
diff changeset
  1196
     * the main thread among the ORB and other activities.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1197
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1198
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1199
    public void perform_work()
02bb8761fcce Initial load
duke
parents:
diff changeset
  1200
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1201
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1202
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1203
02bb8761fcce Initial load
duke
parents:
diff changeset
  1204
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1205
     * Used to obtain information about CORBA facilities and services
02bb8761fcce Initial load
duke
parents:
diff changeset
  1206
     * that are supported by this ORB. The service type for which
02bb8761fcce Initial load
duke
parents:
diff changeset
  1207
     * information is being requested is passed in as the in
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1208
     * parameter {@code service_type}, the values defined by
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1209
     * constants in the CORBA module. If service information is
02bb8761fcce Initial load
duke
parents:
diff changeset
  1210
     * available for that type, that is returned in the out parameter
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1211
     * {@code service_info}, and the operation returns the
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1212
     * value {@code true}. If no information for the requested
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1213
     * services type is available, the operation returns {@code false}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1214
     *  (i.e., the service is not supported by this ORB).
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1215
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1216
     * @param service_type a {@code short} indicating the
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1217
     *        service type for which information is being requested
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1218
     * @param service_info a {@code ServiceInformationHolder} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1219
     *        that will hold the {@code ServiceInformation} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1220
     *        produced by this method
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1221
     * @return {@code true} if service information is available
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1222
     *        for the {@code service_type};
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1223
     *        {@code false} if no information for the
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1224
     *        requested services type is available
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1225
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1226
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1227
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1228
    public boolean get_service_information(short service_type,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1229
                                           ServiceInformationHolder service_info)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1230
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1231
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1232
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1233
02bb8761fcce Initial load
duke
parents:
diff changeset
  1234
    // orbos 98-01-18: Objects By Value -- begin
02bb8761fcce Initial load
duke
parents:
diff changeset
  1235
02bb8761fcce Initial load
duke
parents:
diff changeset
  1236
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1237
     * Creates a new {@code DynAny} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1238
     * {@code Any} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1239
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1240
     * @param value the {@code Any} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1241
     *        {@code DynAny} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1242
     * @return the new {@code DynAny} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1243
     *         {@code Any} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1244
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1245
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1246
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1247
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1248
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1249
    public org.omg.CORBA.DynAny create_dyn_any(org.omg.CORBA.Any value)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1250
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1251
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1252
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1253
02bb8761fcce Initial load
duke
parents:
diff changeset
  1254
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1255
     * Creates a basic {@code DynAny} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1256
     * {@code TypeCode} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1257
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1258
     * @param type the {@code TypeCode} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1259
     *        {@code DynAny} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1260
     * @return the new {@code DynAny} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1261
     *         {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1262
     * @throws org.omg.CORBA.ORBPackage.InconsistentTypeCode if the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1263
     *         {@code TypeCode} object is not consistent with the operation.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1264
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1265
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1266
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1267
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1268
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1269
    public org.omg.CORBA.DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode type) throws org.omg.CORBA.ORBPackage.InconsistentTypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1270
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1271
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1272
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1273
02bb8761fcce Initial load
duke
parents:
diff changeset
  1274
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1275
     * Creates a new {@code DynStruct} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1276
     * {@code TypeCode} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1277
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1278
     * @param type the {@code TypeCode} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1279
     *        {@code DynStruct} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1280
     * @return the new {@code DynStruct} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1281
     *         {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1282
     * @throws org.omg.CORBA.ORBPackage.InconsistentTypeCode if the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1283
     *         {@code TypeCode} object is not consistent with the operation.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1284
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1285
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1286
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1287
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1288
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1289
    public org.omg.CORBA.DynStruct create_dyn_struct(org.omg.CORBA.TypeCode type) throws org.omg.CORBA.ORBPackage.InconsistentTypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1290
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1291
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1292
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1293
02bb8761fcce Initial load
duke
parents:
diff changeset
  1294
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1295
     * Creates a new {@code DynSequence} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1296
     * {@code TypeCode} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1297
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1298
     * @param type the {@code TypeCode} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1299
     *        {@code DynSequence} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1300
     * @return the new {@code DynSequence} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1301
     *         {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1302
     * @throws org.omg.CORBA.ORBPackage.InconsistentTypeCode if the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1303
     *         {@code TypeCode} object is not consistent with the operation.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1304
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1305
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1306
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1307
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1308
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1309
    public org.omg.CORBA.DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode type) throws org.omg.CORBA.ORBPackage.InconsistentTypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1310
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1311
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1312
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1313
02bb8761fcce Initial load
duke
parents:
diff changeset
  1314
02bb8761fcce Initial load
duke
parents:
diff changeset
  1315
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1316
     * Creates a new {@code DynArray} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1317
     * {@code TypeCode} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1318
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1319
     * @param type the {@code TypeCode} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1320
     *        {@code DynArray} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1321
     * @return the new {@code DynArray} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1322
     *         {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1323
     * @throws org.omg.CORBA.ORBPackage.InconsistentTypeCode if the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1324
     *         {@code TypeCode} object is not consistent with the operation.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1325
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1326
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1327
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1328
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1329
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1330
    public org.omg.CORBA.DynArray create_dyn_array(org.omg.CORBA.TypeCode type) throws org.omg.CORBA.ORBPackage.InconsistentTypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1331
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1332
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1333
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1334
02bb8761fcce Initial load
duke
parents:
diff changeset
  1335
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1336
     * Creates a new {@code DynUnion} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1337
     * {@code TypeCode} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1338
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1339
     * @param type the {@code TypeCode} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1340
     *        {@code DynUnion} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1341
     * @return the new {@code DynUnion} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1342
     *         {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1343
     * @throws org.omg.CORBA.ORBPackage.InconsistentTypeCode if the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1344
     *         {@code TypeCode} object is not consistent with the operation.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1345
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1346
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1347
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1348
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1349
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1350
    public org.omg.CORBA.DynUnion create_dyn_union(org.omg.CORBA.TypeCode type) throws org.omg.CORBA.ORBPackage.InconsistentTypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1351
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1352
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1353
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1354
02bb8761fcce Initial load
duke
parents:
diff changeset
  1355
    /**
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1356
     * Creates a new {@code DynEnum} object from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1357
     * {@code TypeCode} object.
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 27519
diff changeset
  1358
     *
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1359
     * @param type the {@code TypeCode} object from which to create a new
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1360
     *        {@code DynEnum} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1361
     * @return the new {@code DynEnum} object created from the given
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1362
     *         {@code TypeCode} object
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1363
     * @throws org.omg.CORBA.ORBPackage.InconsistentTypeCode if the given
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1364
     *         {@code TypeCode} object is not consistent with the operation.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1365
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
  1366
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1367
     * @deprecated Use the new <a href="../DynamicAny/DynAnyFactory.html">DynAnyFactory</a> API instead
02bb8761fcce Initial load
duke
parents:
diff changeset
  1368
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1369
    @Deprecated
02bb8761fcce Initial load
duke
parents:
diff changeset
  1370
    public org.omg.CORBA.DynEnum create_dyn_enum(org.omg.CORBA.TypeCode type) throws org.omg.CORBA.ORBPackage.InconsistentTypeCode
02bb8761fcce Initial load
duke
parents:
diff changeset
  1371
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1372
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1373
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1374
02bb8761fcce Initial load
duke
parents:
diff changeset
  1375
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1376
    * Can be invoked to create new instances of policy objects
02bb8761fcce Initial load
duke
parents:
diff changeset
  1377
    * of a specific type with specified initial state. If
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1378
    * {@code create_policy} fails to instantiate a new Policy
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1379
    * object due to its inability to interpret the requested type
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1380
    * and content of the policy, it raises the {@code PolicyError}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1381
    * exception with the appropriate reason.
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1382
    * @param type the {@code PolicyType} of the policy object to
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1383
    *        be created
02bb8761fcce Initial load
duke
parents:
diff changeset
  1384
    * @param val the value that will be used to set the initial
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1385
    *        state of the {@code Policy} object that is created
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1386
    * @return Reference to a newly created {@code Policy} object
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1387
    *        of type specified by the {@code type} parameter and
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1388
    *        initialized to a state specified by the {@code val}
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1389
    *        parameter
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
  1390
    * @throws org.omg.CORBA.PolicyError when the requested
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1391
    *        policy is not supported or a requested initial state
02bb8761fcce Initial load
duke
parents:
diff changeset
  1392
    *        for the policy is not supported.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1393
    */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1394
    public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1395
        throws org.omg.CORBA.PolicyError
02bb8761fcce Initial load
duke
parents:
diff changeset
  1396
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1397
        // Currently not implemented until PIORB.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1398
        throw new org.omg.CORBA.NO_IMPLEMENT();
02bb8761fcce Initial load
duke
parents:
diff changeset
  1399
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
  1400
}