Category: Spring.NET

SPRING.NET 1.3.2 Learning 6–idref element 0

SPRING.NET 1.3.2 Learning 6–idref element

Hits: 0The following uses an example to illustrate the role of the idref element First, the following [xml] configures the idref element  <object id="theTargetObject" type="…"> . . . </object> <object id="theClientObject" type="…"> <property >...

SPRING.NET 1.3.2 Learning 13–short form of value and ref 0

SPRING.NET 1.3.2 Learning 13–short form of value and ref

Hits: 0Regular way of writing property: <property > <value>hello</value> </property> <constructor-arg> <value>hello</value> </constructor-arg> <entry key="myKey"> <value>hello</value> </entry> Shorthand: <property /> <constructor-arg value="hello"/> <entry key="myKey" value="hello"/> ref regular writing: <property > <ref object="anotherObject"/> </property> <constructor-arg...