Using Spring IoC allows to set bean properties exposed via setters:
public class Bean {
private String value;
public void setValue(String value) {
this.value = value;
}
}
And the bean definition is:
<bean class="Bean">
<property name="value" value="Hello!">
</bean>
Is there any existing plugins/classes for Spring Framework that allows to directly expose bean fields as properties without defining setters? Something like this with the same bean definition:
public class Bean {
@Property
private String value;
}