cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: Custom generators and configuration parameters
Date Fri, 16 Apr 2004 10:17:58 GMT
hi tuomo,

implement avalon's Configurable interface. you'll then be provided with a
Configuration object.

in your example you'd get some-parameter's value like this:

...
	someParam = config.getChild("some-parameter").getValue();
...


> -----Ursprungliche Nachricht-----
> Von: dev-return-59505-m_rolappe=web.de@cocoon.apache.org
> [mailto:dev-return-59505-m_rolappe=web.de@cocoon.apache.org]Im Auftrag
> von Tuomo L
> Gesendet: Freitag, 16. April 2004 11:49
> An: dev@cocoon.apache.org
> Betreff: Custom generators and configuration parameters
>
>
> Hi all,
>
> Is it possible to provide configuration parameters in sitemap for
> generators? Like this:
>
> <map:generator name="my-generator src="MyGenerator">
>   <some-parameter>foobar</some-parameter>
> </map:generator>
>
> This is possible for at least transformers and actions.
>
> If so, how do I read those parameters in the code?
>
> -Tuomo
>


Mime
View raw message