cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conny Krey├čel <Conny.Kreys...@inter-forum.de>
Subject AW: How to configure a producer
Date Thu, 17 Aug 2000 13:56:38 GMT
Is it right that he should also implements the Configurable interface? Like
this:

public class MyProducer extends AbstractProducer implements Configurable
{
}

-Conny-

-----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