> On Wednesday 02 January 2002 11:48 am, you wrote:
> > What will the ComponentManager a Composable Generator is composed with
> > contain/provide? Is there a way to setup this by myself?
>
> It will contain the components defined in the cocoon.xconf. You can add
your
> own components in there using the
> <component-instance class="your.class" role="your.role"/>
> tag, or by defining a role in your own custom roles file, adding a
user-roles
> attribute to the root <cocoon> tag in cocon.xconf and using the roles just
> like the internal roles.

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?
2) Is "component-instance" of your example the string "component-instance"
or can one choose a descriptive element name?
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?

Cheers,
Jan


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