[jboss-jira] [JBoss JIRA] Commented: (JGRP-723) Use Java annotations to automatically set protocol properties

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Mar 26 03:33:39 EDT 2008


    [ http://jira.jboss.com/jira/browse/JGRP-723?page=comments#action_12404700 ] 
            
Bela Ban commented on JGRP-723:
-------------------------------

I've thought about this before, but one big argument against it is that this would not work in the J2ME world. Annotations for exposing attrs and ops for JMX are okay, because this is optional in J2ME, but the protocol config isn't.
Let's discuss this during our Kreuzlingen meeting...

> Use Java annotations to automatically set protocol properties
> -------------------------------------------------------------
>
>                 Key: JGRP-723
>                 URL: http://jira.jboss.com/jira/browse/JGRP-723
>             Project: JGroups
>          Issue Type: Feature Request
>    Affects Versions: 2.7
>            Reporter: Vladimir Blagojevic
>         Assigned To: Vladimir Blagojevic
>             Fix For: 2.7
>
>
> Currently we use a lot of boiler plate code to read protocol properties specified in configuration file. We can eliminate this unnecessary code by using annotations and a bit of Java reflection that would assign protocol property values to matching Java fields, give warnings for deprecated properties, and so on. We should:
> 1) introduce @ProtocolProperty annotation 
> 2) annotate Protocol fields that are properties 
> 3) test framework
> 4) remove all current boilerplate code

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list