ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Duncan Davidson <>
Subject Re: Ant Principles
Date Fri, 21 Apr 2000 13:42:58 GMT

> Would a factory method instead of the constructor add value to your
> proposal?
> public static Foo create(String)
> We get the possibility of returning a subclass of Foo instead of Foo itself.
> However I cannot think of a situation right now, where I could use it. And
> the same effect could be achieved by using a strategie object.

I'd rather not. I'd rather just reflect directly in with looking at
constructor types last. That's the simplest approach that I can see
right now.


View raw message