Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DE89E4FA for ; Sat, 2 Mar 2013 23:23:13 +0000 (UTC) Received: (qmail 80806 invoked by uid 500); 2 Mar 2013 23:23:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 80695 invoked by uid 500); 2 Mar 2013 23:23:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 80683 invoked by uid 99); 2 Mar 2013 23:23:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Mar 2013 23:23:12 +0000 Date: Sat, 2 Mar 2013 23:23:12 +0000 (UTC) From: "Michael Vorburger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEANUTILS-406) DynaClassReader to read DynaClass definitions from a "DSL" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BEANUTILS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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