avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@apache.org>
Subject ExcaliburCompoenentSelector and component-instance
Date Fri, 21 Mar 2003 09:12:20 GMT
Hi,

I would love to use a syntax like

 <conditions>
  <condition name="cond1" value="i&lt;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.

Thank you, Stephan Michels.

_______________________________________________________________________
         Stephan Michels               EMail: stephan@apache.org
         ICQ: 115535699                Tel: +49-030-314-21583
----+----|----+----|----+----|----+----|----+----|----+----|----+----|-|

Mime
View raw message