ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: cvs commit: jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer ConfigTest10.java StringToMyRole1Converter.java DefaultConfigurerTest.java MyRole1.java
Date Sat, 09 Feb 2002 09:25:07 GMT
On Sat, 9 Feb 2002 20:10, Adam Murdoch wrote:
> > I still don't understand the motivation for this. Instead of
> > MyRole lets say
> >
> > interface Condition extends DataType {}
> >
> > add( Condition c );
> >
> > Why would you want to look up an arbitrary DataType? Wouldn't it
> > be best to
> > just look up types that implement Condition?
>
> Absolutely.  The trick is to come up with a type definition system that
> lets you figure out which types implement the role interface, while also
> making those same types available via <property> or TypeInstanceTask.

Okay 

> Any thoughts on a better solution?

Whats wrong with automagically generating this via xdoclet or something 
similar to what it is doing now? Thus any class that implements DataType 
directly or indirectly must have a 

@ant:data name="foo"

if it wants to be exposed in property or via TypeInstanceTask?

-- 
Cheers,

Pete

------------------------------------------------------------
 militant agnostic: i don't know, and you don't know either.
------------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message