|
|
Static String property inside Bean?
I am sure others have already pass through this issue, but I do NOT
see documentation on how in the applicationContext.xml file one can
define a static string as a property for a bean.
Any suggestions?
Russ
Hi,
You can use the util namespace. It would look like this:Code:
lt;bean id=quot;...quot; class=quot;...quot;gt; lt;property name=quot;...quot;gt; lt;util:constant static-field=quot;...quot;/gt; lt;/propertygt;
lt;/beangt;
This is documented here: sp...-util-constant
Thanks Stefan,
That is Spring 2.5 version. I am stuck in the middle ages of Spring 2.0.
I just check the reference and the same information applies to version 2.0...THANK YOU so much! |
|