Results 1 to 1 of 1
-
How to use Idref Element and its advantages
This is an way to pass the id of another bean in the container in <constructor-arg/> or <property/> element)
The above bean definition is exactly equivalent (at runtime) to the following:Java Code:<bean id="ServerBean" class="..."/> <bean id="ClientBean" class="..."> <property name="IpName"> <idref bean="ServerBean" /> </property> </bean>
Java Code:<bean id=" ServerBean " class="..."/> <bean id="clientBean " class="..."> <property name=" IpName <value> ServerBean </value> </property> </bean>
Similar Threads
-
What are dependency injection and its advantages
By Java Tip in forum Java TipReplies: 0Last Post: 03-29-2008, 12:36 PM -
How to use Idref Element and its advantages
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:37 PM -
Advantages
By samson in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-02-2007, 03:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks