[Resend without attachments, as it seems to screw up my email program...]

Hi,

I have built a new RMMCI implementaton for the MMBase 1.9 branch. or,
more specifically, I re-implemented the generator code. This code takes
into account Generics (which are to be used in the 1.9 bridge), and
produces code that also uses generics. This has some consequences:
because the rmic compiler cannot properly handle generic code (as far as
I tried it, anyway), there are no pre-compiled RMI stub classes.
This is no problem in 1.5, where the JVM will create its own stubs
runtime (though this does mean that both the server and the client
should run an upafdted (1.5 compativle) version).
This code does away with the MMCI.xml, and because of the above isssue,
the rmic compiler. This makes compilation a lot quicker.

This call is to add the code to MMBase 1,9 (which will be a version of
1.8 made suitable for java 1.5).

START OF VOTING:   2006-09-25 14:00
END OF CALL:       2006-09-28 14:00

  [_] +1 (YES)
  [_] +0 (ABSTAIN )
  [_] -1 (NO), because :


Implementation details:

The code includes a change in build.xml and
src/org/mmbase/bridge/remote/util/ObjectWrapper.java.

The following classes/resources in
src/org/mmbase/bridge/remote/generator/ are dropped:

ClassToXML.java
MMCI.java
NotInMMCIException.java
RemoteGenerator.java
XMLClass.java
XMLMethod.java
resources/mmci.dtd
resources/mmci_1_0.dtd

and replaced with the following classes:

AbstractClassGenerator.java
  - abstract class for the class generators (excluding
ObjectWrapperGenerator.java)

AbstractGenerator.java
  - abstract class for all the generators

ImplementationGenerator.java
  - generates the *_Impl classes in org.mmbase.bridge.remote.implementation

InterfaceGenerator.java
  - generates the interfaces in org.mmbase.bridge.remote

ObjectWrapperGenerator.java
  - generates the ObjectWrapperHelper class

RMMCI.java
  - main class, starts the generation

RmiGenerator.java
  - generates the *_Rmi classes in org.mmbase.bridge.remote.rmi

Attached are the new files (still need to add javadoc), and the adapted
ObjectWrapper class and build.xml.



--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Hard work may pay off in the long run, but laziness always pays off
right now."

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to