cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Module JMX- Add Attributes Action - Generated Code

Authors: Alexandre Neubert, Thomas LevequeJean-Francois Denise

Add Attributes Action

The code is generated at the end of the target MBean class.

The following code is an example for one Attribute (EventNb, String as type, Read / Write and 'number of event Description' as description) :

    /**
     * Get number of event
     */
    public String getEventNb() {
        return eventNb;
    }

    /**
     * Set number of event
     */
    public void setEventNb(String value) {
        eventNb = value;
    }

    /**
     * Attribute : EventNb
     */
    private String eventNb = null;


The code is generated at the end of the target MBean interface.
The following code is an example for one Attribute (EventNb, String as type, Read / Write and 'number of event Description' as description) :

   /**
     * Get number of event
     */
    public String getEventNb();

    /**
     * Set number of event
     */
    public void setEventNb(String value);


In case of the MBean class has already a getter or a setter method for this attribute, we generate only the missing methods and
don't generate a private field.

The code is generated at the end of the target MBean class.
The following code is an example for one Attribute (EventNb, String as type, Read / Write and 'number of event Description' as description)
which has already a getter method :

    /**
     * Set number of event
     */
    public void setEventNb(String value) {
        //TODO add your own implementation.
    }



Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems