[jboss-jira] [JBoss JIRA] Created: (JBMAN-31) Add a classProperties to ManagementObject

Scott M Stark (JIRA) jira-events at lists.jboss.org
Wed Oct 29 19:31:31 EDT 2008


Add a classProperties to ManagementObject
-----------------------------------------

                 Key: JBMAN-31
                 URL: https://jira.jboss.org/jira/browse/JBMAN-31
             Project: JBoss Managed
          Issue Type: Feature Request
    Affects Versions: JBossMan.2.0.0.CR3
            Reporter: Scott M Stark
            Assignee: Scott M Stark


We need an additional classProperties field on the ManagementObject annotation to allow complete specification of the management interface from the class level annotaton:

   /**
    * A class level specification of the management properties. Depending on the
    * properties() value, this can either override or augment the ManagementProperty
    * annotations found on the bean fields/methods.
    * @return
    */
   ManagementProperty[] classProperties() default {};

The ManagementProperties enum needs to be extended with two additional values (CLASS, CLASS_AND_EXPLICIT) to control how the class and field/method annotations combine:
public enum ManagementProperties
{
   /** All properties by default */
   ALL,
   
   /** Only bean properties annotated with @ManagementProperty */
   EXPLICIT,

   /** Only @ManagementProperty from the @ManagementObject class annotation */
   CLASS,

   /** Merge @ManagementProperty from the @ManagementObject class annotation
    * and any bean properties annotated with @ManagementProperty
    */
   CLASS_AND_EXPLICIT
}


-- 
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