-
Enhancement
-
Resolution: Duplicate
-
P4
-
6
-
generic
-
generic
It would be extremely useful if JMX's Standard MBeans could include
a description for attributes, operations, and parameters. Currently,
descriptions are possible with Dynamic MBeans but not Standard ones.
The metadata language feature defined by JSR 175 would be ideal
for this purpose.
The proposed tag would be @Description. It could be defined either as
a general-purpose tag in, e.g., java.lang.metadata, or as a JMX-specific
tag in javax.management. The definition would be this:
@Documented @RuntimeVisible
public @interface Description {
String value();
}
Additionally, but less importantly, a JMX-specific tag could
describe the impact of an operation (INFO, ACTION, ACTION_INFO),
as defined by MBeanOperationInfo.getImpact():
@Documented @RuntimeVisible @Target({ElementType.METHOD})
public @interface OperationImpact {
int value();
}
This would be in javax.management.
a description for attributes, operations, and parameters. Currently,
descriptions are possible with Dynamic MBeans but not Standard ones.
The metadata language feature defined by JSR 175 would be ideal
for this purpose.
The proposed tag would be @Description. It could be defined either as
a general-purpose tag in, e.g., java.lang.metadata, or as a JMX-specific
tag in javax.management. The definition would be this:
@Documented @RuntimeVisible
public @interface Description {
String value();
}
Additionally, but less importantly, a JMX-specific tag could
describe the impact of an operation (INFO, ACTION, ACTION_INFO),
as defined by MBeanOperationInfo.getImpact():
@Documented @RuntimeVisible @Target({ElementType.METHOD})
public @interface OperationImpact {
int value();
}
This would be in javax.management.
- duplicates
-
JDK-6323980 Annotations to simplify MBean development
-
- Closed
-
- relates to
-
JDK-4639350 Add JMX support into J2SE
-
- Resolved
-
-
JDK-6221321 Add annotations to specify MBean descriptor contents
-
- Resolved
-
-
JDK-5072268 Suggested API changes for JMX 2.0
-
- Closed
-