Comments (9)
Descriptor adds information about content unit (e.g. seconds, milliseconds,
dollars etc) as well as bounds (min/max values or permitted enumerations) on
both operations and attributes.
This could be supported by introducing a new Descriptor annotation type that
Operation and Property would inherit from, supporting these common attributes.
Quite a bit of work, so unless someone really needs this feature, I doubt it'll
make it into the code base anytime soon.
Original comment by [email protected]
on 9 Jul 2011 at 1:29
from pojo-mbean.
Original comment by [email protected]
on 9 Jul 2011 at 5:40
- Added labels: Design
from pojo-mbean.
Original comment by [email protected]
on 9 Jul 2011 at 10:49
- Added labels: Type-Task
- Removed labels: Type-Enhancement
from pojo-mbean.
It seems a @Descriptor annotation may be of considerable use, mainly to provide
units of measure for attributes, e.g.
- Seconds, Milliseconds, Date etc.
That alone would save a lot of long attribute names such as "durationSeconds".
Original comment by [email protected]
on 9 Jul 2011 at 11:17
from pojo-mbean.
Original comment by [email protected]
on 10 Jul 2011 at 1:01
- Added labels: Priority-Medium
- Removed labels: Priority-Low
from pojo-mbean.
Created branches/devl-desvriptor to carry out the development of the descriptor
support.
Original comment by [email protected]
on 10 Jul 2011 at 5:36
- Changed state: Started
- Removed labels: Design
from pojo-mbean.
Partial implementation committed to devl branch in r90, and
All @ManagedAttribute descriptor fields no modelled, including casting of
string values (minValue, maxValue, defaultValue, legalValues) to Integer/Long
for testing, but it seems that the jconsole totally ignores these values when
assigning values to a writable attribute (try running CountingApplication). It
shows all the Descriptor fields, but don't use them. Must try a JMX console
before proceeding to waste more developer time on Descriptors. Sad, really
Original comment by [email protected]
on 10 Jul 2011 at 8:42
from pojo-mbean.
I have the gut feeling, that if the Descriptor annotation makes any sense at
all, we should merge them into the @Description annotation (keeping the default
"value" being the textual description.
It seems wrong to have both @Description and @Descriptor annotations on the
same element. The only reason to keep both would be to stay close to the silly
legacy MBean design.
Probably, I should read up on the JSR 255 spec before making up my mind on this
one.
Yawn - "Dead Spec Walking" :-D
Original comment by [email protected]
on 10 Jul 2011 at 8:47
from pojo-mbean.
Original comment by [email protected]
on 13 Jul 2011 at 11:51
- Added labels: Implementation, Type-Enhancement
- Removed labels: Type-Task
from pojo-mbean.
Related Issues (20)
- Move MBean registration from AbstractMBean class to separate MBeanRegistration class HOT 4
- Consider using "objectName" atrtribute on @MBean HOT 4
- Add @Inherited annotation to all Mbean releted annotations HOT 3
- Change the annotation structure (multiple @Attribute annotations and separate @Description) HOT 1
- Consider compiling with JRE 1.5 as target platform HOT 2
- Add support for MBeanRegistration callbacks HOT 2
- IllegalArgumentException accessing @ManagedAttributes and @ManagedOperations HOT 2
- Unable to generate an ObjectName based on a class reference HOT 3
- Add attribute and operation sort order to @ManagedAttribute and @ManagedOperation HOT 2
- Add pause() functionality to ProcessingMBean sample HOT 5
- Automatic discovery of attributes and operations via @MBean(automatic={ATTRIBUTE, OPERATION}) HOT 1
- MessagingMBean: Change duration handling to allow specifying TimeUnit HOT 2
- add capability to generate names for objects with multiple instance
- Annotate annotations with @Documented HOT 2
- Register mBean to another MBeanServer than ManagementFactory.getPlatformMBeanServer() HOT 3
- All exceptions from invoked methods are wrapped in IllegalArgumentException HOT 3
- Next release
- Unable to find annotations on JDK proxy HOT 2
- Support JSK-255 annotations (package javax.management)
- Proposal of enhancement : make pojo-mbean OSGi-compliant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pojo-mbean.