avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <nicola...@apache.org>
Subject Re: [Avalon5] Startable interface
Date Fri, 07 Jun 2002 20:22:14 GMT
From: "Berin Loritsch" <bloritsch@apache.org>

> It seems that Peter already beat me putting a proposal Avalon 5
> directory out there.  Quick question regarding the Startable
> interface:
> public interface Startable
> {
>     void start() throws Exception;
>     void stop() throws Exception;
> }
> Is there any particular reason that start() and stop() require
> exception throwing?  Wouldn't RuntimeExceptions (reported in the
> javadocs so they are documented) be better?

I hate RuntimeExceptions, and they have been a source of really
uncomprehensible error reporting in Cocoon.
Could you please explain?

> Also, I thought that we were in favor of separating Intializable
> and Disposable.  They aren't as tightly coupled as start()/stop()
> or suspend()/resume().  Otherwise, there will be a lot of components
> with either an empty initialize() or an empty dispose() method.


The same thing happened with my classes for startable, since 80% of the time
I just start components.

Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message