You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Berin Loritsch <bl...@apache.org> on 2001/12/12 21:43:20 UTC
Parameterizable Components
It seems that there are a fair number of Components that the configuration
consists of a bunch of <parameter/> statements. The Avalon team recognized
that some Components only needed a flat configuration space as opposed to
a Hierarchical one.
To that end, the Parameters object has been promoted to a full-fledged
Lifecycle step. You have the concept of Parameterizable components in
Avalon Framework, and had them since Avalon Framework 4.0.
Please, if all you are planning on doing with the configuring of your
components, make it easier on yourself and later developers and use the
Parameterizable interface.
interface org.apache.avalon.framework.parameters.Parameterizable
{
void parameterize( Parameters params ) throws ParameterException;
}
ExcaliburComponentManager knows how to give you what you want.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org