Results 1 to 1 of 1
-
How to use XML-based configuration metadata shortcuts
In spite of using full forms of value, reference elements springs also support shortcuts.
Example 1:
Example 2:Java Code:<property name="sampleProperty" value="sample"/> <constructor-arg value=" sample "/> <entry key="myKey" value=" sample "/>
These both examples are equivalent to the following.Java Code:<property name="sampleProperty"> <ref bean="sampleBean"> </property> <constructor-arg> <ref bean="sampleBean"> </constructor-arg>
Java Code:<property name="sampleProperty" ref="sampleBean"/> <constructor-arg ref="sampleBean"/>
Similar Threads
-
i need an example of JSR179 ((Location based Ser)implementation for CDC based device
By talk_to_vivekmishra in forum CDC and Personal ProfileReplies: 3Last Post: 12-30-2010, 10:07 AM -
XML-based configuration metadata in Spring Framework
By Java Tip in forum Java TipReplies: 0Last Post: 04-01-2008, 10:45 AM -
XML-based configuration metadata in Spring Framework
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:17 PM -
How to use XML-based configuration metadata shortcuts
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:38 PM -
difference between code based security and role based security
By boy22 in forum New To JavaReplies: 1Last Post: 07-23-2007, 11:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks