ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: myrmidon questions
Date Wed, 16 Jan 2002 08:24:59 GMT
On Wed, 16 Jan 2002 19:03, Peter Donald wrote:
> > Is there any concept of role sub-typing?  Given that a role maps
> > one-to-one to a java type (only to an interface?), and java types can be
> > sub-typed, maybe it makes sense to introduce such a concept.  Certainly,
> > if we did, then the 'magic' of the type manager goes away.
>
> There used to be. Originally classes just registered and you did something
> like "give me an instance of class X with name Y". However this proved to
> be extremely complex - I was actually warned against it by the Cocoon
> developers who faced a similar design problem. It ended up that they were
> right and I simplified it to what we have now.
>
> Now it is much easier to determine what you get when you ask with a
> component with a certain role. Previously it was much mre ickier -
> especially as roles/interfaces allow multiple inheritance/implementation.

Though it may be worth trying because I like subtypes better than the idea of 
a magic container ;)

-- 
Cheers,

Pete

---------------------------------------------------
"It is easy to dodge our responsibilities, but we 
cannot dodge the consequences of dodging our 
responsibilities." -Josiah Stamp 
---------------------------------------------------

--
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