@Retention(value=RUNTIME)
@Target(value={METHOD,PARAMETER})
public @interface JmxExport
Annotation to mark setters and getters of attributes to export via JMX,
Any other methods that do not respect get/set/is bean naming conventions will be exported as JMX operation.
Any method parameters annotated with JMXExport allows you to provide names and descriptions to your
operation parameters.
Names are inferred from the method names, but can be customized further with JmxExport.value.
Open type mapping is configurable by registering a new mapper with: GlobalMXBeanMapperSupplier.register
or modifying the current ones (if supported). The default implementation, Spf4jOpenTypeMapper supports this.
attribute description can be added to the annotation.
Classes annotated with this annotation can be exported with Registry.export or DynamicMBeanBuilder
- Author:
- zoly