cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Klein Ikkink <h.kleinikk...@gmail.com>
Subject Re: Using spring configurator (for properties) in block
Date Sun, 01 Feb 2009 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;

    @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


Mime
View raw message