cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Rocha <rica...@apache.org>
Subject Re: AW: How to configure a producer
Date Thu, 17 Aug 2000 16:58:42 GMT
Conny Krey├čel wrote:
> 
> Is it right that he should also implements the Configurable interface? Like
> this:
> 
> public class MyProducer extends AbstractProducer implements Configurable
> {
> }
> 
> -Conny-
>

As Robin pointed out, yes: the Producer must implement Configurable
for it to have access to cocoon.properties configurations.

 

> -----Urspr├╝ngliche Nachricht-----
> Von: Ricardo Rocha [mailto:ricardo@apache.org]
> Gesendet: Donnerstag, 17. August 2000 10:15
> An: cocoon-dev@xml.apache.org
> Betreff: Re: How to configure a producer
> 
> Given:
> 
>   public class MyProducer extends AbstractProducer
>     String fileExtension = null;
>     . . .
>     public void init(Configurations conf)
>       throws InitializationException {
>       this.fileExtension =
>         (String) conf.get("fileExtension");
>     }
>     . . .
>   }
> 
> Hope this helps,
> 
> Ricardo

Mime
View raw message