commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Vorburger (Created) (JIRA)" <>
Subject [jira] [Created] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a "DSL"
Date Sun, 06 Nov 2011 12:32:51 GMT
DynaClassReader to read DynaClass definitions from a "DSL"

                 Key: BEANUTILS-406
             Project: Commons BeanUtils
          Issue Type: New Feature
          Components: DynaBean
    Affects Versions: 1.8.3
            Reporter: Michael Vorburger

It could sometimes be very useful to create DynaClass definitions not only programmatically
(as is possible today), but to define data structures in some textual format (a "DSL"), and
load that into DynaClass/DynaProperty and create DynaBeans from that.

This isn't very hard to add to BeanUtils (I've done it and will attach a patch) and would
allow the following usage, given:

{noformat}Address  { 
	zip:  java.lang.Long 

Employee {
        firstName : java.lang.String
	lastName :java.lang.String   
	mainAddress  : Address
	boss         : Employee
	subordinates : Employee *
	address      : Address <>

one could then use the new proposed DynaClassReader like so:

{noformat}DynaClassReader r = new DynaClassReader();
DynaClass klass = r.getDynaClass("Employee");

This requires BEANUTILS-405.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message