src/share/classes/org/omg/CORBA/ORB.java

Tue, 22 Oct 2013 11:40:27 +0100

author
alanb
date
Tue, 22 Oct 2013 11:40:27 +0100
changeset 533
52ad44f9a3ec
parent 240
f90b3e014e83
child 545
fe781b3badd6
permissions
-rw-r--r--

8021257: com.sun.corba.se.** should be on restricted package list
Reviewed-by: chegar, coffeys, smarks
Contributed-by: alan.bateman@oralce.com, mark.sheppard@oracle.com

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

mercurial