[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-03-14 Thread Benedikt Ritter (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13602219#comment-13602219
 ] 

Benedikt Ritter commented on BEANUTILS-406:
---

Michael, I still didn't have the time to take a close look at your proposal. 
From a very brief look, there are a few things I'd like to discuss:

 * When talking about a DSL for describing DynaClasses, we should also think 
about how we want to define the DSL itself. In your proposal the language 
definition is only implicit in the code of the reader. XML provides a good 
infrastructure for defining new document formats. Maybe it would be better to 
create a DynaClass.xsd. This has the advantage of already available tool 
support (for parsing, aswell as for designing new DynaClass XML files)
 * Unit tests could just use equals on DynaClasses, DynaBeans and 
DynaProperties (instead of comparing properties). I'll try to have a look at 
the equals implementations of the affected classes and how equals is 
implemented.

For future contributions the following should be taken into account:
 * Please don't use tabs. Use spaces to indent code.
 * Please put a new line at the end of each file
 * Please don't use the @author tag. Your name will be listed in the 
contributors section of pom.xml
 * Please make sure every file includes the Apache Licence header

Thanks a lot for your interest in BeanUtils :)

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
Assignee: Benedikt Ritter
 Fix For: LATER THAN 1.8.4

 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-03-06 Thread Benedikt Ritter (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13594510#comment-13594510
 ] 

Benedikt Ritter commented on BEANUTILS-406:
---

Matt, thanks for your comment. Oliver is also working on some new features 
(BEANUTILS-425 and BEANUTILS-428) so I think we will release a 1.9. The 
features proposed by Michael would fit into a 1.9 nicely :)

I hope to have some time this weekend to work on this.

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
Assignee: Benedikt Ritter
 Fix For: LATER THAN 1.8.4

 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-03-03 Thread Benedikt Ritter (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13591695#comment-13591695
 ] 

Benedikt Ritter commented on BEANUTILS-406:
---

Hello Michael,

sorry that it took so long for us to catch up on you. We are now working on a 
new release. Are you still interested in contributing for BeanUtils?

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
Assignee: Benedikt Ritter
 Fix For: LATER THAN 1.8.4

 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-03-03 Thread Michael Vorburger (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13591832#comment-13591832
 ] 

Michael Vorburger commented on BEANUTILS-406:
-

Benedikt, if you / Apache Commons think that this is of interest / still 
relevant, then I would be more than happy to contribute to BeanUtils.  As you 
can see from https://github.com/vorburger/mon, even though I personally dropped 
above since, related matters continue to fascinate me.. ;)

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
Assignee: Benedikt Ritter
 Fix For: LATER THAN 1.8.4

 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-03-03 Thread Matt Benson (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13591839#comment-13591839
 ] 

Matt Benson commented on BEANUTILS-406:
---

FWIW, this being a new feature does not IMO preclude its inclusion in 
[beanutils] 1.8.4 _unless_ it results in some backwards incompatibility for an 
existing feature.  I haven't reviewed the patch, but surely it can be coded 
compatibly?

Matt

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
Assignee: Benedikt Ritter
 Fix For: LATER THAN 1.8.4

 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-03-02 Thread Michael Vorburger (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13591560#comment-13591560
 ] 

Michael Vorburger commented on BEANUTILS-406:
-

Hi Benedikt, thanks for the interest. This was a while ago.. ;) Personally I've 
moved on since then to EMF which thanks to http://wiki.eclipse.org/Xcore now 
offers something very similar. Unfortunately many people (unjustifieldy!) still 
think of EMF as an Eclipse technology only (when, actually, if runs just fine 
standalone), and my impression has been that Bean Utils Dyna Beans, though 
dated, appears to still be better known within the Java community at large.

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
Assignee: Benedikt Ritter
 Fix For: LATER THAN 1.8.4

 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2013-02-28 Thread Benedikt Ritter (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13589480#comment-13589480
 ] 

Benedikt Ritter commented on BEANUTILS-406:
---

Hello Michael,

this looks very exciting. I'll try to dig into the issues you've created and 
the proposed patches this weekend. 
Since this is a new feature it can not be included in 1.8.4.

Thanks!
Benedikt

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a DSL

2011-11-06 Thread Michael Vorburger (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13145100#comment-13145100
 ] 

Michael Vorburger commented on BEANUTILS-406:
-

This would probably still need a few lines of new doc about it in the 
src\main\java\overview.html (like I've provided for BEANUTILS-405  
BEANUTILS-407).

 DynaClassReader to read DynaClass definitions from a DSL
 --

 Key: BEANUTILS-406
 URL: https://issues.apache.org/jira/browse/BEANUTILS-406
 Project: Commons BeanUtils
  Issue Type: New Feature
  Components: DynaBean
Affects Versions: 1.8.3
Reporter: Michael Vorburger
 Attachments: 
 0002-BEANUTILS-406-DynaClassReader-to-read-DynaClass-defi.patch


 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 
 }{noformat}
 one could then use the new proposed DynaClassReader like so:
 {noformat}DynaClassReader r = new DynaClassReader();
 r.readClasspathResource(/DynaClassReaderTest.domain.txt);
 DynaClass klass = r.getDynaClass(Employee);
 {noformat}
 This requires BEANUTILS-405.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira