cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <>
Subject Re: ComposerGenerator - what is composed?
Date Wed, 02 Jan 2002 17:58:13 GMT
On Wednesday 02 January 2002 12:45 pm, you wrote:
> For example the ServerPagesGenerator looks up ProgramGenerator.ROLE.
> But has no class and no role defined in cocoon.xconf but only the
> following:
>   <program-generator>
>     <parameter name="auto-reload" value="true"/>
>     <parameter name="root-package" value="org.apache.cocoon.www"/>
>     <parameter name="preload" value="true"/>
>   </program-generator>
> 1) How is that to understand? Is the ProgramGenerator a compiled in feature
> of the ComponentManager every Composable Generator is composed with and one
> can only add own stuff in cocoon.xconf?

Read some of the avalon documentation. program-generator is a name of a 
predefined role for cocoon, from the org/apache/cocoon/cocoon.roles file. The 
child elements of program-generator are passed into the component via a 
parameters object.

> 2) Is "component-instance" of your example the string "component-instance"
> or can one choose a descriptive element name?

You have to use component-instance, if you do not create your own roles file. 
if you create your own roles file, you can use the shorthand as the element 

> 3) And will that class then be provided to every composed component by
> cocoon?


> 4) Is the component automagically configured with the stuff contained by
> the element in the cocoon.xconf?

If your component implements the Configurable interface, then yes, it is 
passed a Configuration object that you can use to configure your component.

peter royal ->

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message