Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2007, 09:38 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
How to use XML-based configuration metadata shortcuts
In spite of using full forms of value, reference elements springs also support shortcuts.

Example 1:

Code:
<property name="sampleProperty" value="sample"/> <constructor-arg value=" sample "/> <entry key="myKey" value=" sample "/>
Example 2:

Code:
<property name="sampleProperty"> <ref bean="sampleBean"> </property> <constructor-arg> <ref bean="sampleBean"> </constructor-arg>
These both examples are equivalent to the following.

Code:
<property name="sampleProperty" ref="sampleBean"/> <constructor-arg ref="sampleBean"/>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need an example of JSR179 ((Location based Ser)implementation for CDC based device talk_to_vivekmishra CDC and Personal Profile 1 06-22-2008 10:45 PM
XML-based configuration metadata in Spring Framework Java Tip Java Tips 0 04-01-2008 11:45 AM
How to use XML-based configuration metadata shortcuts Java Tip Java Tips 0 03-30-2008 11:06 AM
XML-based configuration metadata in Spring Framework JavaBean Java Tips 0 10-04-2007 10:17 PM
difference between code based security and role based security boy22 New To Java 1 07-24-2007 12:59 AM


All times are GMT +3. The time now is 06:28 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org