I didn't want to follow up on the thread about interfaces vs. reflection.
I want to critically look at the statement
if (obj instanceof Disposable) (Disposable) obj).dispose();
which is being used not in the container but inside server objects.
This strikes me as odd since IMO the interface should be a marker for
the container. It should not be a plea to sibling code to please call
this method at the appropriate time.
When ever I see a statement like that inside the server code I say to
myself "All instances of this object should just implement Disposable
and those that don't want to do anything should have empty method
implementations".
Thoughts?
Regards,
Alan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]