[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2784) Use java-style annotations for metadata
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Mon May 16 21:48:01 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor updated JBRULES-2784:
----------------------------------
Fix Version/s: 5.3.0.M1
(was: 5.2.0.M1)
> Use java-style annotations for metadata
> ----------------------------------------
>
> Key: JBRULES-2784
> URL: https://issues.jboss.org/browse/JBRULES-2784
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 5.2.0.M1
> Reporter: Davide Sottara
> Assignee: Mark Proctor
> Priority: Trivial
> Labels: drl, metadata
> Fix For: 5.3.0.M1
>
>
> Drools Metadata, allowed in rules and bean declarations, are conceptually similar to java annotations, but the actual structure is different: Drools is free-form, while Java uses (optional) key - element pairs:
> Drools : @attr( <free text here> )
> Java : @attr( key1 = value1, key2 ... )
> I suggest the use of Java-like annotations in place of free-form meta-attributes.
> Compatibility with official metadata (e.g. event definition) will be guaranteed.
> Could break compatibility if a user defined and used their own metadata in the code, as some constructs like @author(john doe) will no longer be accepted, even if @author("john doe"), @author(john, doe) or @author(name="john doe") will.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list