This tip shows the way to set the property of the bean by constructor injection.

Java Code:
public class sample{ 
     String name; 
     public sample(String a) 
     { 
        name = a; 
     }    
}
The following code is used for setting the property.

Java Code:
 <bean id="bean1"  class="sample"> 
<constructor-arg> 
  <value>Sample Bean Value</value> 
   </constructor-arg>   
</bean>