> > + Object is created inside task, so no need to find the correct > > type in some intelligent way. This makes the creation a lot > > faster, and might prevent classloader problems.
True, but then the programmer is responsible for providing that. > > + No conflict with the addText(String) method > > - When the task is encapsulated, you cannot add an existing > > object of the correct type. You have to create a new one > > with createXxxx to add it, and fill the fields. Right, and this is a big negative. The ability to do things of this nature without having to create your own class types would be nice. > Excellent summary. Key point is that neither is "wrong" or unworkable. > > After Duncan reemerges from radio silence, lets quickly come to a > consensus. Yes.. Lets. :) > I woud just rather that Ant didn't support both (except, perhaps briefly as > a migration aid). +1
