[jboss-jira] [JBoss JIRA] Commented: (JGRP-448) Provide schema for protocol stack configuration

Bela Ban (JIRA) jira-events at lists.jboss.org
Thu Dec 11 10:54:37 EST 2008


    [ https://jira.jboss.org/jira/browse/JGRP-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12442173#action_12442173 ] 

Bela Ban commented on JGRP-448:
-------------------------------

I'm thinking the schema for a config XML file could be generated from the annotations.

We know the basic schema looks like this:
<config>
   <prot-1 var-1 var2  var3... />
   <prot-2 var-1 var-2 var-3 ... />
</config>

I think what could be done is

   * Go through the dirs org/jgroups/protocols and
     /org/jgroups/protocols/pbcast and find all protocols
   * For each protocol:
         o Add an entry to the schema
         o Find all properties (@Property)
         o For each property:
               + Get the property name
               + Get the description (possibly look for
                 @ManagedAttribute if the description from @Property is
                 empty)
               + Generate a schema entry for the property

The output would be a schema (XSD), that we ship with JGroups. Folks can then include that schema and have property completion, plus a description of all properties for a given protocol. Actually, we should reference the schema in all of our protocol configs. 

> Provide schema for protocol stack configuration
> -----------------------------------------------
>
>                 Key: JGRP-448
>                 URL: https://jira.jboss.org/jira/browse/JGRP-448
>             Project: JGroups
>          Issue Type: Feature Request
>    Affects Versions: 2.5
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Optional
>             Fix For: 2.x
>
>
> This would allow for:
> - list of options for each protocol
> - description of that option
> - option completion in most IDEs

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

        



More information about the jboss-jira mailing list