You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hubert Klein Ikkink <h....@gmail.com> on 2009/02/01 21:40:39 UTC

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;

    @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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org