[
https://issues.apache.org/jira/browse/OAK-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra updated OAK-1906:
---------------------------------
Attachment: OAK-1906.patch
This patch provides a {{AnnotatedStandardMBean}} which can be used along with
annotations to describe the method param names
{code:java}
@Description("MBean desc.")
public interface FooMBean {
@Description("getter")
String getGetter();
@Description("setter")
void setSetter(long s);
@Description("run")
@Impact(MBeanOperationInfo.INFO)
void run(@Name("timeout") @Description("how long?") long timeout);
}
{code}
Credits to [~christanto] for the initial implementation
[~mduerig] Thoughts!!
> Adding information to a Standard MBean interface using annotations
> -------------------------------------------------------------------
>
> Key: OAK-1906
> URL: https://issues.apache.org/jira/browse/OAK-1906
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Components: commons
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Attachments: OAK-1906.patch
>
>
> With StandardMBean support the JMX operations loose the parameter names. To
> improve the usability it would be helpful to have Annotation support to
> provide meaningful parameter names. One such approach is described at [1]
> [1]
> https://weblogs.java.net/blog/emcmanus/archive/2005/07/adding_informat.html
--
This message was sent by Atlassian JIRA
(v6.2#6252)