Re: ExcaliburCompoenentSelector and component-instance
Sylvain Wallez <[email protected]> Fri, 21 Mar 2003 23:10:38 +0100
| Newsgroups | gmane.comp.jakarta.avalon.phoenix.devel,gmane.comp.jakarta.turbine.maven.devel |
|---|---|
| Organization | Anyware Technologies |
| Message-ID | <[email protected]> |
Stephan Michels wrote:
>Hi,
>
>I would love to use a syntax like
>
> <conditions>
> <condition name="cond1" value="i<5"/>
> <condition name="cond2" class="org.domain.FileChanged"/>
> </conditions>
>
>with the ExcaliburCompoenentSelector.
>
> <role name="org.domain.ConditionSelector"
> shorthand="conditions"
> default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector">
> <hint shorthand="condition" class="org.domain.ExpressionCondition"/>
> </role>
>
>But the ECS only allows 'component-instance' with a class attribute
>or a defined element name and using the class specified the
>the hint role. It is perhaps possible to change the implementation
>to use the class attribute in other elements than
>'component-instance'?
>
>I attached a patch file for the ECS.
>
You should also look at Cocoon's ExtendedComponentSelector which allows
this kind of features
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }