On Thu, 5 Jul 2001 09:03, Berin Loritsch wrote:
> > That depends on the component. If your component
> > requires deferred or
> > non-critical exception handling, try/catch isn't
> > good enough. That's why
> > Mr Megginson came up with org.xml.sax.ErrorHandler.
yep ;) Basically I see ErrorHandler as a strategy for dealing with the
exception aspect. Damn useful it is but I am a loss at how to integrate it
generically.
> Component creation and lifecycle management are not
> cleanly served by that approach.
Depends on what you call "lifecycle management" ;) I have found it useful in
two places. One is in containers to implement different exception handling
strategies and one is in the "service" part of an "active" component. ie Each
time you call the relevent service method you pass in relevent handler.
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 |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]