The value of the property is set by using the value attribute of the <constructor-arg> element.
For example:
<bean id="ABCDE" class="SetterInject.FootballPlayer"><constructor-arg value="7"/>
</bean>
<bean id="PQRS" class="SetterInject.FootballPlayer">
<constructor-arg value="21"/>
</bean>
Now, when ABCDE and PQRS play football, the following output will be displayed:
I am playing with shirt number 7.
I am playing with shirt number 21.