Berin wrote: >> We need a way to invoke the recycle() method in the current implementations, >> so a support for Recyclable is required. > >:) I can do that without requiring that interface! I will use the >reflection facilities to determine if there is a "recycle()" method >with public access, and then call it. I will probably get that done >within the next couple of days.
I hope you're joking. In case you're not: http://java.sun.com/docs/books/effective/toc.html , item 35. Right now, I'm refactoring someone else's code who also liked reflection-wizardry. It's a bitch. Just my opinion. We've got such a nice framework right now, with lots of good design patterns incorporated, and I would hate to see it wasted in this way. (on a side note: I didn't follow the discussion closely, this just popped into my eye) tomK (String)"".getClass().getConstructor(new Class[] {"".getClass()}).newInstance(new Object[]{"I love reflection"}); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]