Relates :
|
|
Relates :
|
|
Relates :
|
Rasmus Lund wrote: > What about providing extra info on attributes and operations telling if they > are enabled at the moment? > > E.g. imagine a MBean with the following: > > * Attribute: enablePooling (boolean) > * Attribute: poolSize (int) > * Attribute: debug (boolean) > * Attribute: debugLevel (int) > * Operation: refreshPool > > Now. If enablePooling is set to false, I would someone reading > poolSizeAttribute.isEnabled and refreshPoolOperation.isEnables to get false > as return value. Likewise if debug is set to false, they should read > debugLevelAttribute.isEabled to false. > > This would make the automatic generation of user interfaces based on > MBean-meta-info a lot easier.
|