Hi Chris,
As far as I know about spring
you should simple have the public getters and setters in the class where you want to inject any property . The property itself should be the private instance variable(to repect
java encapsulation). for ex:-
Class ABC{
private
String name;
public String getName(){
return name;
}
public void setName(String name){
this.name=name;
}
}
Now spring config file will look as follows for injecting the property to this class.
<bean id="abc" class ="ABC">
<property name="name" value="XYZ"/>
</bean>
Please let me know if I have interpret your question in a wrong way, hope the above info is of some help.
Regards
Guru