On Tue, 26 Sep 2006, Peter Reilly <[EMAIL PROTECTED]> wrote:

> It would however be nicer to make macrodef
> more generic. To inject the UEs into the macro
> instance.
> 
> Like:
> <macrodef name="engine">
>    <attribute name="impl">
>    <dom>
>         <service type="javax.script.ScriptEngineFactory"
> provider="@{impl}"/>
>    </dom>
>  </macrodef>
> 
> <jar jarfile="x.jar">
>     <fileset dir="classes"/>
>      <engine impl="org.me.SimpleLang"/>
>  </jar>

Yes, that would indeed be very useful, same for <presetdef>.

If it turns out to be too difficult, maybe plaing with the type
adapters instead of implementing MacroCondition, MacorSelector and
MacroFilter might be an option.

Stefan

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

Reply via email to