Git Product home page Git Product logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 9 Jul 2011 at 5:40

  • Added labels: Design

from pojo-mbean.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 9 Jul 2011 at 10:49

  • Added labels: Type-Task
  • Removed labels: Type-Enhancement

from pojo-mbean.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 10 Jul 2011 at 1:01

  • Added labels: Priority-Medium
  • Removed labels: Priority-Low

from pojo-mbean.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.