avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <leosim...@apache.org>
Subject RE: [A5] Activity Package
Date Mon, 17 Jun 2002 13:45:08 GMT
> A typical way to safely enforce a stop() in Avalon is this:
> 
> 
> class StoppableComponent implements Stoppable, Runnable

noooooooooooooooo! ;) Wasn't it you who wrote the docs that explain
Runnable should not be used as part of the lifecycle? You should create
a helper Runnable object (not component) that does your work, then
create a thread that runs it in start(), and stop the thread in stop().

- Leo Simons



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


Mime
View raw message