Hubert Klein Ikkink | 1 Feb 2009 21:40
Picon

Re: Using spring configurator (for properties) in block

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

Gmane