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

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

yes.

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

-- 
peter royal -> [EMAIL PROTECTED]

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to