[jboss-jira] [JBoss JIRA] Created: (JGRP-901) Marshalling: generate marshalling code from an XML description (or annotations)
Bela Ban (JIRA)
jira-events at lists.jboss.org
Tue Feb 17 12:08:45 EST 2009
Marshalling: generate marshalling code from an XML description (or annotations)
-------------------------------------------------------------------------------
Key: JGRP-901
URL: https://jira.jboss.org/jira/browse/JGRP-901
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 2.x
JGroups has a finite number of types that need to get marshalled. If we describe them in an XML format (a la Google Protocol Buffers) and then generate the marshalling code, this has multiple advantages:
- Removal of boiler plate code
- Generation of Java code *and* C code (for wireshark)
- We can now make several classes immutable (all fields are final). Currently, we always have to read data from a stream (Streamable.readFrom()) and therefore cannot make all fields final
- Facory based approach: the factory code is generated and the right factory is picked based on the version number
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list