1 Feb 2009 21:40
Re: Using spring configurator (for properties) in block
Hubert Klein Ikkink <h.kleinikkink <at> gmail.com>
2009-02-01 20:40:39 GMT
2009-02-01 20:40:39 GMT
Hi,
the Settings object is a Spring defined bean. So you can write your Java code
and inject the Settings object just like any other Spring bean.
public class MyJava {
private Settings settings;
<at> Required
public void setSettings(Settings s) {
this.settings = s;
}
}
See also http://static.springframework.org/spring/docs/2.5.x/reference/beans.html
Kind regards, Hubert Klein Ikkink
RSS Feed