At 09:02 23/2/01 -0500, Fernando Padilla wrote: > >Hi. I've been burrowing around quite a few tasks and I have this >question. > >Some use the createElementName() methods, while others use >addElementName( Element ) methods. And I am wondering what are the pros >and cons.
org.apache.tools.ant.IntrospectionHelper is where it is done. Which to use is a matter of preference. Part of it is backwards compatability and avoiding massive refactoring. createFoo() style basically is to make it easier to auotmatically do things at sub-objects lifecycle start. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*
