Hey
Rickard �berg wrote:
> > The jboss.jcml configuration entries for Minerva are getting
> > pretty large. I wonder if it would be useful to add a comment hook where
> > a MBean could (optionally) declare a function
> > getDescription(String parameter)
> > and if it's present the JCML writer could add inline XML comments
> > describing the parameters. Than again, that may just make the whole thing
> > even more muddled. Thoughts?
>
> Well, if you make a dynamic MBean instead of a standard MBean (i.e.
> implement javax.management.DynamicMBean) you can provide your own
> MBeanInfo which can contain this. Then we can easily change the
> Configuration MBean to add comments to the generated jcml :-)
Need I add that it would be trivial to make a doclet that makes a
subclass of an ordinary MBean with special tags (for descriptions etc.)
which generates an MBean that implements DynamicMBean and also generates
the proper MBeanInfo object? No? Didn't think so either.. ;-)))
Doclets rulez. Lets generate stuff. :o)
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com