Server Side: Writing SIDL classes in Java

Babel also supports calls to SIDL classes implemented in Java. These classes obey the same rules as the client side Java classes, except that is this case the file, class, and method names all end in _Impl.

As is the case with other Babel server side files, only the code written between splicer blocks will be preserved between calls of Babel. Make sure any data and code is kept in the designated areas, otherwise it won't be there after you run Babel on those files.

Aside from this restriction, code may be written just like any other Java program. Methods may be called on the current object with just the method name, and on other objects using the object.method standard. However, do not try to make calls directly to _Impl methods. It won't work at all on different objects, and it breaks the object model if used on methods in the current object. (That is, it is possible to call foo_Impl in the current object, but because the call will not go through Babel, any inheritance information will be lost, and the wrong version of the method may be called. Simply call foo in the standard way.)



babel-0.9.4
users_guide Last Modified 2004-08-17

http://www.llnl.gov/CASC/components
components@llnl.gov