avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yannick Menager <ymenager...@fastmail.fm>
Subject Re: Startable doesn't has a isRunning() interface ?
Date Wed, 08 Oct 2003 19:22:26 GMT
But that way you're putting a risk that the container might be out of 
sync with the real state of the component. All that to save having an 
extra function. I would think the downsides are bigger than the cost of 
having an extra function to check the state of the component. Otherwise 
most people will implement that function but it won't be standard, 
reducing potential reusability, and causing pains to people who want to 
incorporate dynamic administration capabilities in the container.

Jonathan Hawkes wrote:
> Yes.  An isRunning() method would not be useful to the container.  The
> container knows whether the startable isRunning or not (ie: it has called
> start() and not stop() ).
> ----- Original Message ----- 
> From: "Yannick Menager" <ymenager_ml@fastmail.fm>
> To: <dev@avalon.apache.org>
> Sent: Wednesday, October 08, 2003 10:17 AM
> Subject: Startable doesn't has a isRunning() interface ?
>>Is there any reason Startable doesn't has a isRunning() ( or something
>>like that ) interface ?
>>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>>For additional commands, e-mail: dev-help@avalon.apache.org

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

View raw message