[
http://jira.jboss.com/jira/browse/JGRP-723?page=all ]
Vladimir Blagojevic resolved JGRP-723.
--------------------------------------
Resolution: Done
Resolved. The algorithm is slightly changed from Bela's outline:
1) Resolve all Protocol fields with @Property annotation and assign values to fields
2) Resolve all Protocol methods with @Property annotation and invoke those methods
3) Invoke Protocol#setProperties to deal with hard to handle scenarios (cannot be handled
by steps 1 or 2)
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