https://github.com/epickrram/juxtapose
Annotation-driven MBean exporting for Java
https://github.com/epickrram/juxtapose
Last synced: about 1 year ago
JSON representation
Annotation-driven MBean exporting for Java
- Host: GitHub
- URL: https://github.com/epickrram/juxtapose
- Owner: epickrram
- Created: 2013-01-12T05:51:38.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-12T06:11:20.000Z (over 13 years ago)
- Last Synced: 2025-02-15T12:17:09.558Z (over 1 year ago)
- Language: Java
- Size: 313 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
juxtapose
=========
Annotation-driven MBean exporting for Java
Usage
-----
Annotate attributes for export:
@Export(description = "myIntegerAttribute")
public int getIntegerAttribute()
{
// ...
}
Annotate methods for export:
@Export
public void updateCounter(final int value)
{
// ...
}
Annotate your object to define a description and JMX `ObjectName`:
@ExportBean(path = "my.bean.path:type=MyObject", description = "My Object")
public final class MyObject
{
// ...
}
All annotation arguments are optional, sensible defaults will be used if they are not present.
To register/deregister your object with the local MBean server, use the `Registrar` methods:
final MyObject myObject = new MyObject();
Registrar.registerBean(myObject);
// ...
Registrar.deregisterBean(myObject);