You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2003/01/23 01:57:15 UTC

[modeler] Adding support for descriptors

Right now, the DTD we're using in modeler lets you define mbeans,
constructors, attributes, notifications, and operations -- but you can
only describe the standard (hard coded) properties of each of these
elements.  This is limiting in some scenarios (including one I'm working
on).

The JMX Specification defines an additional capability in the metadata for
a ModelMBean called a Descriptor, which is basically just a map of
name-value pairs.  The advantage is that this makes the metadata stored in
an mbean extensible, without having to modify the commons-modeler DTD.

I propose to support <descriptor> as an element in the
mbeans-descriptors.dtd (and process it when a corresponding XML file is
parsed), as well as make it available in appropriate extensions to the
ManagedBean information.  When you ask for the MBeanInfo for a bean, the
descriptor information will be included.

Does this sound OK with everybody?

Craig



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>