4176N/A." Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A."
0N/A." This code is free software; you can redistribute it and/or modify it
0N/A." under the terms of the GNU General Public License version 2 only, as
0N/A." published by the Free Software Foundation.
0N/A."
0N/A." This code is distributed in the hope that it will be useful, but WITHOUT
0N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A." version 2 for more details (a copy is included in the LICENSE file that
0N/A." accompanied this code).
0N/A."
0N/A." You should have received a copy of the GNU General Public License version
0N/A." 2 along with this work; if not, write to the Free Software Foundation,
0N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A."
2362N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A." or visit www.oracle.com if you need additional information or have any
2362N/A." questions.
0N/A."
4880N/A.TH idlj 1 "16 Mar 2012"
0N/A
0N/A.LP
1178N/A.SH "Name"
0N/Aidlj \- The IDL\-to\-Java Compiler
0N/A.LP
4176N/A\f3idlj\fP generates Java bindings from a given IDL file.
0N/A.SH "Synopsis"
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/Aidlj [ \fP\f3options\fP\f3 ] \fP\f4idl\-file\fP\f3
0N/A.fl
0N/A\fP
0N/A.fi
0N/A
0N/A.LP
0N/A.LP
0N/Awhere \f2idl\-file\fP is the name of a file containing Interface Definition Language (IDL) definitions. \f2Options\fP may appear in any order, but must precede the \f2idl\-file\fP.
0N/A.LP
0N/A.SH "Description"
0N/A.LP
0N/A.LP
1178N/AThe IDL\-to\-Java Compiler generates the Java bindings for a given IDL file.\ For binding details, see the
1178N/A.na
1178N/A\f2OMG IDL to Java Language Language Mapping Specification\fP @
1178N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/guides/idl/mapping/jidlMapping.html. Some previous releases of the IDL\-to\-Java compiler were named \f2idltojava\fP.
4176N/A.LP
0N/A.SS
0N/AEmitting Client and Server Bindings
0N/A.LP
4176N/A.LP
4176N/ATo generate Java bindings for an IDL file named My.idl:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj My.idl
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A.LP
4176N/AThis generates the client\-side bindings and is equivalent to:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-fclient\fP My.idl
4176N/A.fl
4176N/A.fi
0N/A
0N/A.LP
4176N/A.LP
4176N/AThe client\-side bindings do not include the server\-side skeleton. If you want to generate the server\-side bindings for the interfaces:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-fserver\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
4176N/A.LP
0N/A.LP
4176N/AServer\-side bindings include the client\-side bindings plus the skeleton, all of which are \f2POA\fP (that is, Inheritance Model) classes. If you want to generate both client and server\-side bindings, use one of the following (equivalent) commands:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-fclient \-fserver\fP My.idl
4176N/A.fl
4176N/Aidlj \f3\-fall\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
0N/A.LP
0N/A.LP
0N/AThere are two possible server\-side models: the Inheritance Model and the Tie Delegation Model.
0N/A.LP
0N/A.LP
0N/AThe default server\-side model is the \f2Portable Servant Inheritance Model\fP. Given an interface \f2My\fP defined in \f2My.idl\fP, the file \f2MyPOA.java\fP is generated. You must provide the implementation for \f2My\fP and it must inherit from \f2MyPOA\fP.
0N/A.LP
0N/A.LP
1178N/A\f2MyPOA.java\fP is a stream\-based skeleton that extends
1178N/A.na
1178N/A\f2org.omg.PortableServer.Servant\fP @
1178N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/api/org/omg/PortableServer/Servant.html and implements the \f2InvokeHandler\fP interface and the operations interface associated with the IDL interface the skeleton implements.
0N/A.LP
0N/A.LP
1178N/AThe \f2PortableServer\fP module for the
1178N/A.na
1178N/A\f2Portable Object Adapter (POA)\fP @
1178N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/guides/idl/POA.html defines the native \f2Servant\fP type. In the Java programming language, the \f2Servant\fP type is mapped to the Java \f2org.omg.PortableServer.Servant\fP class. It serves as the base class for all POA servant implementations and provides a number of methods that may be invoked by the application programmer, as well as methods which are invoked by the POA itself and may be overridden by the user to control aspects of servant behavior.
0N/A.LP
0N/A.LP
0N/AAnother option for the Inheritance Model is to use the \f2\-oldImplBase\fP flag in order to generate server\-side bindings that are compatible with versions of the Java programming language prior to J2SE 1.4. Note that using the \f2\-oldImplBase\fP flag is non\-standard: these APIs are being deprecated. You would use this flag ONLY for compatibility with existing servers written in J2SE 1.3. In that case, you would need to modify an existing MAKEFILE to add the \f2\-oldImplBase\fP flag to the \f2idlj\fP compiler, otherwise POA\-based server\-side mappings will be generated. To generate server\-side bindings that are backwards compatible:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-fclient \-fserver\fP \f3\-oldImplBase\fP My.idl
4176N/A.fl
4176N/Aidlj \f3\-fall\fP \f3\-oldImplBase\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
0N/A.LP
4176N/A.LP
4176N/AGiven an interface \f2My\fP defined in \f2My.idl\fP, the file \f2_MyImplBase.java\fP is generated. You must provide the implementation for \f2My\fP and it must inherit from \f2_MyImplBase\fP.
4176N/A.LP
0N/A.LP
0N/AThe other server\-side model is called the Tie Model. This is a delegation model. Because it is not possible to generate ties and skeletons at the same time, they must be generated separately. The following commands generate the bindings for the Tie Model:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-fall\fP My.idl
4176N/A.fl
4176N/Aidlj \f3\-fallTIE\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
0N/A.LP
4176N/A.LP
4176N/AFor the interface \f2My\fP, the second command generates \f2MyPOATie.java\fP. The constructor to \f2MyPOATie\fP takes a \f2delegate\fP. In this example, using the default POA model, the constructor also needs a \f2poa\fP. You must provide the implementation for \f2delegate\fP, but it does not have to inherit from any other class, only the interface \f2MyOperations\fP. But to use it with the ORB, you must wrap your implementation within \f2MyPOATie\fP. For instance:
4176N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A ORB orb = ORB.init(args, System.getProperties());
0N/A.fl
0N/A
0N/A.fl
0N/A // Get reference to rootpoa & activate the POAManager
0N/A.fl
0N/A POA rootpoa = (POA)orb.resolve_initial_references("RootPOA");
0N/A.fl
0N/A rootpoa.the_POAManager().activate();
0N/A.fl
0N/A
0N/A.fl
0N/A // create servant and register it with the ORB
0N/A.fl
0N/A MyServant myDelegate = new MyServant();
0N/A.fl
0N/A myDelegate.setORB(orb);
0N/A.fl
0N/A
0N/A.fl
0N/A // create a tie, with servant being the delegate.
0N/A.fl
0N/A MyPOATie tie = new MyPOATie(myDelegate, rootpoa);
0N/A.fl
0N/A
0N/A.fl
0N/A // obtain the objectRef for the tie
0N/A.fl
0N/A My ref = tie._this(orb);
0N/A.fl
0N/A\fP
0N/A.fi
0N/A
0N/A.LP
4176N/A.LP
4176N/AYou might want to use the Tie model instead of the typical Inheritance model if your implementation must inherit from some other implementation. Java allows any number of interface inheritance, but there is only one slot for class inheritance. If you use the inheritance model, that slot is used up . By using the Tie Model, that slot is freed up for your own use. The drawback is that it introduces a level of indirection: one extra method call occurs when invoking a method.
4176N/A.LP
0N/A.LP
0N/ATo generate server\-side, Tie model bindings that are compatible with versions of the IDL to Java language mapping in versions prior to J2SE 1.4.
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-oldImplBase\fP \f3\-fall\fP My.idl
4176N/A.fl
4176N/Aidlj \f3\-oldImplBase\fP \f3\-fallTIE\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
0N/A.LP
0N/A.LP
0N/AFor the interface \f2My\fP, this will generate \f2My_Tie.java\fP. The constructor to \f2My_Tie\fP takes a \f2impl\fP. You must provide the implementation for \f2impl\fP, but it does not have to inherit from any other class, only the interface \f2HelloOperations\fP. But to use it with the ORB, you must wrap your implementation within \f2My_Tie\fP. For instance:
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A ORB orb = ORB.init(args, System.getProperties());
0N/A.fl
0N/A
0N/A.fl
0N/A // create servant and register it with the ORB
0N/A.fl
0N/A MyServant myDelegate = new MyServant();
0N/A.fl
0N/A myDelegate.setORB(orb);
0N/A.fl
0N/A
0N/A.fl
0N/A // create a tie, with servant being the delegate.
0N/A.fl
0N/A MyPOATie tie = new MyPOATie(myDelegate);
0N/A.fl
0N/A
0N/A.fl
0N/A // obtain the objectRef for the tie
0N/A.fl
0N/A My ref = tie._this(orb);
0N/A.fl
0N/A\fP
0N/A.fi
0N/A
0N/A.LP
0N/A.SS
0N/ASpecifying Alternate Locations for Emitted Files
0N/A.LP
4176N/A.LP
4176N/AIf you want to direct the emitted files to a directory other than the current directory, invoke the compiler as:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-td /altdir\fP My.idl
4176N/A.fl
4176N/A.fi
0N/A
0N/A.LP
0N/A.LP
0N/AFor the interface \f2My\fP, the bindings will be emitted to \f2/altdir/My.java\fP, etc., instead of \f2./My.java\fP.
4176N/A.LP
0N/A.SS
0N/ASpecifying Alternate Locations for Include Files
0N/A.LP
4176N/A.LP
4176N/AIf \f2My.idl\fP included another idl file, \f2MyOther.idl\fP, the compiler assumes that \f2MyOther.idl\fP resides in the local directory. If it resides in \f2/includes\fP, for example, then you would invoke the compiler with the following command:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-i /includes\fP My.idl
4176N/A.fl
4176N/A.fi
0N/A
0N/A.LP
4176N/A.LP
4176N/AIf \f2My.idl\fP also included \f2Another.idl\fP that resided in \f2/moreIncludes\fP, for example, then you would invoke the compiler with the following command:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-i /includes \-i /moreIncludes\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
4176N/A.LP
0N/A.LP
4176N/ASince this form of include can become irritatingly long, another means of indicating to the compiler where to search for included files is provided. This technique is similar to the idea of an environment variable. Create a file named \f2idl.config\fP in a directory that is listed in your CLASSPATH. Inside of \f2idl.config\fP, provide a line with the following form:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aincludes=/includes;/moreIncludes
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
0N/A.LP
1178N/AThe compiler will find this file and read in the includes list. Note that in this example the separator character between the two directories is a semicolon (;). This separator character is platform dependent. On the Windows platform, use a semicolon, on the Unix platform, use a colon, etc. For more information on \f2includes\fP, see the
1178N/A.na
1178N/A\f2Setting the Classpath\fP @
1178N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/tools/index.html#general.
4176N/A.LP
0N/A.SS
0N/AEmitting Bindings for Include Files
0N/A.LP
4176N/A.LP
4176N/ABy default, only those interfaces, structs, etc, that are defined in the idl file on the command line have Java bindings generated for them. The types defined in included files are not generated. For example, assume the following two idl files:
4176N/A.LP
4176N/A
4176N/A.LP
4176N/A.LP
4176N/A\f4My.idl\fP
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/A#include <MyOther.idl>
4176N/A.fl
4176N/Ainterface My
4176N/A.fl
4176N/A{
4176N/A.fl
4176N/A};
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A
4176N/A.LP
4176N/A.LP
4176N/A\f4MyOther.idl\fP
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Ainterface MyOther
4176N/A.fl
4176N/A{
4176N/A.fl
4176N/A};
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A
4176N/A.LP
4176N/A.LP
4176N/AThe following command will only generate the java bindings for \f2My\fP:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj My.idl
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A.LP
4176N/ATo generate all of the types in \f2My.idl\fP and all of the types in the files that \f2My.idl\fP includes (in this example, \f2MyOther.idl\fP), use the following command:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-emitAll\fP My.idl
4176N/A.fl
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A.LP
4176N/AThere is a caveat to the default rule. \f2#include\fP statements which appear at global scope are treated as described. These \f2#include\fP statements can be thought of as import statements. \f2#include\fP statements which appear within some enclosing scope are treated as true \f2#include\fP statements, meaning that the code within the included file is treated as if it appeared in the original file and, therefore, Java bindings are emitted for it. Here is an example:
4176N/A.LP
0N/A
0N/A.LP
4176N/A.LP
4176N/A\f4My.idl\fP
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/A#include <MyOther.idl>
4176N/A.fl
4176N/Ainterface My
4176N/A.fl
4176N/A{
4176N/A.fl
4176N/A #include <Embedded.idl>
4176N/A.fl
4176N/A};
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
4176N/A
4176N/A.LP
4176N/A.LP
4176N/A\f4MyOther.idl\fP
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Ainterface MyOther
4176N/A.fl
4176N/A{
4176N/A.fl
4176N/A};
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
4176N/A
0N/A.LP
4176N/A.LP
4176N/A\f4Embedded.idl\fP
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aenum E {one, two, three};
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A
4176N/A.LP
0N/A.LP
4176N/ARunning the following command:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj My.idl
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A.LP
4176N/Awill generate the following list of Java files:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/A./MyHolder.java
4176N/A.fl
4176N/A./MyHelper.java
4176N/A.fl
4176N/A./_MyStub.java
4176N/A.fl
4176N/A./MyPackage
4176N/A.fl
4176N/A./MyPackage/EHolder.java
4176N/A.fl
4176N/A./MyPackage/EHelper.java
4176N/A.fl
4176N/A./MyPackage/E.java
4176N/A.fl
4176N/A./My.java
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
0N/A.LP
4176N/ANotice that \f2MyOther.java\fP was not generated because it is defined in an import\-like \f2#include\fP. But \f2E.java\fP \f2was\fP generated because it was defined in a true \f2#include\fP. Also notice that since \f2Embedded.idl\fP was included within the scope of the interface \f2My\fP, it appears within the scope of \f2My\fP (that is,in \f2MyPackage\fP).
4176N/A.LP
0N/A.LP
0N/AIf the \f2\-emitAll\fP flag had been used in the previous example, then all types in all included files would be emitted.
0N/A.LP
0N/A.SS
0N/AInserting Package Prefixes
0N/A.LP
4176N/A.LP
4176N/ASuppose that you work for a company named ABC that has constructed the following IDL file:
4176N/A.LP
0N/A
0N/A.LP
4176N/A.LP
4176N/A\f4Widgets.idl\fP
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Amodule Widgets
4176N/A.fl
4176N/A{
4176N/A.fl
4176N/A interface W1 {...};
4176N/A.fl
4176N/A interface W2 {...};
4176N/A.fl
4176N/A};
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
4176N/A
4176N/A.LP
4176N/A.LP
4176N/ARunning this file through the IDL\-to\-Java compiler will place the Java bindings for \f2W1\fP and \f2W2\fP within the package \f2Widgets\fP. But there is an industry convention that states that a company's packages should reside within a package named \f2com.<company name>\fP. The \f2Widgets\fP package is not good enough. To follow convention, it should be \f2com.abc.Widgets\fP. To place this package prefix onto the \f2Widgets\fP module, execute the following:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-pkgPrefix Widgets com.abc\fP Widgets.idl
4176N/A.fl
4176N/A.fi
4176N/A
4176N/A.LP
4176N/A.LP
4176N/AIf you have an IDL file which includes \f2Widgets.idl\fP, the \f2\-pkgPrefix\fP flag must appear in that command also. If it does not, then your IDL file will be looking for a \f2Widgets\fP package rather than a \f2com.abc.Widgets\fP package.
4176N/A.LP
0N/A.LP
0N/AIf you have a number of these packages that require prefixes, it might be easier to place them into the \f2idl.config\fP file described above. Each package prefix line should be of the form:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/APkgPrefix.<type>=<prefix>
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
4176N/ASo the line for the above example would be:
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/APkgPrefix.Widgets=com.abc
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
0N/A.LP
0N/AThe use of this option does not affect the Repository ID.
0N/A.LP
0N/A.SS
0N/ADefining Symbols Before Compilation
0N/A.LP
4176N/A.LP
4176N/AYou may need to define a symbol for compilation that is not defined within the IDL file, perhaps to include debugging code in the bindings. The command
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-d\fP MYDEF My.idl
4176N/A.fl
4176N/A.fi
0N/A
0N/A.LP
0N/A.LP
0N/Ais the equivalent of putting the line \f2#define MYDEF\fP inside \f2My.idl\fP.
4176N/A.LP
0N/A.SS
0N/APreserving Pre\-Existing Bindings
0N/A.LP
4176N/A.LP
4176N/AIf the Java binding files already exist, the \f2\-keep\fP flag will keep the compiler from overwriting them. The default is to generate all files without considering if they already exist. If you've customized those files (which you should not do unless you are very comfortable with their contents), then the \f2\-keep\fP option is very useful. The command
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-keep\fP My.idl
4176N/A.fl
4176N/A.fi
0N/A
0N/A.LP
0N/A.LP
4176N/Aemits all client\-side bindings that do not already exist.
4176N/A.LP
0N/A.SS
0N/AViewing Progress of Compilation
0N/A.LP
4176N/A.LP
4176N/AThe IDL\-to\-Java compiler will generate status messages as it progresses through its phases of execution. Use the \f2\-v\fP option to activate this "verbose" mode:
4176N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \fP\f3\-v\fP My.idl
4176N/A.fl
4176N/A.fi
0N/A
0N/A.LP
0N/A.LP
0N/ABy default the compiler does not operate in verbose mode.
4176N/A.LP
0N/A.SS
0N/ADisplaying Version Information
0N/A.LP
0N/A.LP
0N/ATo display the build version of the IDL\-to\-Java compiler, specify the \f2\-version\fP option on the command\-line:
0N/A.LP
4176N/A.nf
4176N/A\f3
4176N/A.fl
4176N/Aidlj \-version
4176N/A.fl
4176N/A\fP
4176N/A.fi
4176N/A
0N/A.LP
0N/A.LP
0N/AVersion information also appears within the bindings generated by the compiler. Any additional options appearing on the command\-line are ignored.
0N/A.LP
0N/A.SH "Options"
0N/A.LP
0N/A.RS 3
0N/A.TP 3
0N/A\-d symbol
0N/AThis is equivalent to the following line in an IDL file:
0N/A.nf
0N/A\f3
0N/A.fl
0N/A#define \fP\f4symbol\fP\f3
0N/A.fl
0N/A\fP
0N/A.fi
0N/A.TP 3
0N/A\-emitAll
0N/AEmit all types, including those found in \f2#include\fP files.
0N/A.TP 3
0N/A\-fside
0N/ADefines what bindings to emit. \f2side\fP is one of \f2client\fP, \f2server\fP, \f2serverTIE\fP, \f2all\fP, or \f2allTIE\fP. The \f2\-fserverTIE\fP and \f2\-fallTIE\fP options cause delegate model skeletons to be emitted. Assumes \f2\-fclient\fP if the flag is not specified.
0N/A.TP 3
0N/A\-i include\-path
0N/ABy default, the current directory is scanned for included files. This option adds another directory.
0N/A.TP 3
0N/A\-keep
0N/AIf a file to be generated already exists, do not overwrite it. By default it is overwritten.
0N/A.TP 3
0N/A\-noWarn
0N/ASuppresses warning messages.
0N/A.TP 3
0N/A\-oldImplBase
0N/AGenerates skeletons compatible with pre\-1.4 JDK ORBs. By default, the POA Inheritance Model server\-side bindings are generated. This option provides backward\-compatibility with older versions of the Java programming language by generating server\-side bindings that are \f2ImplBase\fP Inheritance Model classes.
0N/A.TP 3
0N/A\-pkgPrefix type prefix
0N/AWherever \f2type\fP is encountered at file scope, prefix the generated Java package name with \f2prefix\fP for all files generated for that type. The \f2type\fP is the simple name of either a top\-level module, or an IDL type defined outside of any module.
0N/A.TP 3
0N/A\-pkgTranslate type package
4176N/AWhenever the module name \f2type\fP is encountered in an identifier, replace it in the identifier with \f2package\fP for all files in the generated Java package. Note that \f2pkgPrefix\fP changes are made first. \f2type\fP is the simple name of either a top\-level module, or an IDL type defined outside of any module, and must match the full package name exactly.
4176N/A.br
4176N/A.br
0N/AIf more than one translation matches an identifier, the longest match is chosen. For example, if the arguments include:
0N/A.nf
0N/A\f3
0N/A.fl
0N/A \-pkgTranslate foo bar \-pkgTranslate foo.baz buzz.fizz
0N/A.fl
0N/A\fP
0N/A.fi
0N/AThe following translations would occur:
0N/A.nf
0N/A\f3
0N/A.fl
0N/Afoo => bar
0N/A.fl
0N/Afoo.boo => bar.boo
0N/A.fl
0N/Afoo.baz => buzz.fizz
0N/A.fl
0N/Afoo.baz.bar => buzz.fizz.bar
0N/A.fl
0N/A\fP
0N/A.fi
0N/AThe following package names cannot be translated:
0N/A.RS 3
0N/A.TP 2
0N/Ao
0N/A\f2org\fP
0N/A.TP 2
0N/Ao
0N/A\f2org.omg\fP or any subpackages of \f2org.omg\fP
0N/A.RE
4176N/AAny attempt to translate these packages will result in uncompilable code, and the use of these packages as the first argument after \f2\-pkgTranslate\fP will be treated as an error.
0N/A.TP 3
0N/A\-skeletonName xxx%yyy
0N/AUse \f2xxx%yyy\fP as the pattern for naming the skeleton. The defaults are:
0N/A.RS 3
0N/A.TP 2
0N/Ao
0N/A%POA for the \f2POA\fP base class (\f2\-fserver\fP or \f2\-fall\fP)
0N/A.TP 2
0N/Ao
0N/A_%ImplBase for the \f2oldImplBase\fP class (\f2\-oldImplBase\fP and (\f2\-fserver\fP or \f2\-fall\fP))
0N/A.RE
0N/A.TP 3
0N/A\-td dir
0N/AUse \f2dir\fP for the output directory instead of the current directory.
0N/A.TP 3
0N/A\-tieName xxx%yyy
0N/AName the tie according to the pattern. The defaults are:
0N/A.RS 3
0N/A.TP 2
0N/Ao
0N/A%POATie for the \f2POA\fP tie base class (\f2\-fserverTie\fP or \f2\-fallTie\fP)
0N/A.TP 2
0N/Ao
0N/A%_Tie for the \f2oldImplBase\fP tie class (\f2\-oldImplBase\fP and (\f2\-fserverTie\fP or \f2\-fallTie\fP))
0N/A.RE
0N/A.TP 3
0N/A\-nowarn, \-verbose
0N/AVerbose mode.
0N/A.TP 3
0N/A\-version
0N/ADisplay version information and terminate.
0N/A.RE
0N/A
0N/A.LP
4176N/A.LP
4176N/ASee the Description section for more option information.
4176N/A.LP
0N/A.SH "Restrictions:"
0N/A.LP
0N/A.RS 3
0N/A.TP 2
0N/Ao
0N/AEscaped identifiers in the global scope may not have the same spelling as IDL primitive types, \f2Object\fP, or \f2ValueBase\fP. This is because the symbol table is pre\-loaded with these identifiers; allowing them to be redefined would overwrite their original definitions. (Possible permanent restriction).
0N/A.TP 2
0N/Ao
0N/AThe \f2fixed\fP IDL type is not supported.
0N/A.RE
0N/A
0N/A.LP
0N/A.SH "Known Problems:"
0N/A.LP
0N/A.RS 3
0N/A.TP 2
0N/Ao
0N/ANo import generated for global identifiers. If you invoke on an unexported local impl, you do get an exception, but it seems to be due to a \f2NullPointerException\fP in the \f2ServerDelegate\fP DSI code.
0N/A.RE
0N/A
0N/A.LP
0N/A