What package should I use for the component implementation classes?
When the build process ("make all") compiles the IDL file that contains your component's interface, it creates Java classes according to the CORBA spec for IDL->Java mapping, with the package being determined by the pragma prefix and the IDL module name. These classes are packed in ../lib/.jar. For example, prefix Under your module's src directory, you should create a corresponding package tree, with a subpackage for the implementation classes of each component. The name should be that of the interface, with "Impl" appended. In the above example, we would create the Java package "alma.demo.XmlComponentImpl". This naming convention is gently enforced by the framework through the generated component helper classes. With If you wonder about the seemingly silly repetition of Without trying to infringe on the standard ruling powers of ALMA software engineering, it seems reasonable to group the implementation classes of very similar components into one Impl package, that contains several -Impl and -Helper classes. Note: 2003-11-25, G.Chiozzi: with ACS 3.0 the standard for ALMA prefix has been changed from upper case "ALMA" to lower case "alma". -- GianlucaChiozzi - 30 Aug 2005 |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|