|
From: Mark P. <mar...@co...> - 2003-12-09 14:27:02
|
Hi,
It would be nice to access programatically if we expose any beans via
jmx...although we could also get the same functionality by using a
default "JavaDoc" attribute that would capture the comments from the
source code and expose them at runtime.... This might a good approach if
keeping these descriptions in sync is important. It could be the
default mechanism if no other description is provided.
Cheers,
- Mark
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf
Of Rod Johnson
Sent: Tuesday, December 09, 2003 6:21 AM
To: spr...@li...
Subject: [Springframework-developer] Description element in XML bean
definitions
I've added optional <description> elements to allow user documentation
in XML bean definition documents. The string values are not currently
available programmatically, although I'll add this if there's a
compelling reason. (I was tempted to add it anyway, but then I
remembered YAGNI!)
Following discussion on the web site, I've used an element
everywhere--no attributes.
Description can now be the first element for any beans, bean, property
or constructor-arg element, like this:
<beans>
<description>
Parent application context for my very special web application.
Contains transactioin definitions...
<description>
<bean id="x" class="y">
<description>My special x bean</description>
<property name="foo">
<description>xxxx</description>
<value>bar</value>
</property>
</bean>
Thomas, can you please update the DTD on the web site?
Regards,
Rod
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for
IBM's Free Linux Tutorials. Learn everything from the bash shell to sys
admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|