Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 61905 invoked from network); 9 Oct 2003 00:41:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Oct 2003 00:41:57 -0000 Received: (qmail 26091 invoked by uid 500); 9 Oct 2003 00:41:30 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 26009 invoked by uid 500); 9 Oct 2003 00:41:30 -0000 Mailing-List: contact dev-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list dev@avalon.apache.org Received: (qmail 25960 invoked from network); 9 Oct 2003 00:41:29 -0000 Received: from unknown (HELO mail.ibiblio.org) (152.2.210.112) by daedalus.apache.org with SMTP; 9 Oct 2003 00:41:29 -0000 Received: from apache.org (e004.dhcp212-198-17.noos.fr [212.198.17.4]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.ibiblio.org (Postfix) with ESMTP id 4101524AFDA for ; Wed, 8 Oct 2003 20:41:37 -0400 (EDT) Message-ID: <3F84AF65.8030308@apache.org> Date: Thu, 09 Oct 2003 02:44:21 +0200 From: Stephen McConnell User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en, en-us MIME-Version: 1.0 To: Avalon Developers List Subject: Re: Startable doesn't has a isRunning() interface ? References: <026001c38dba$b23447b0$0600005a@adsnm.com> <028301c38dcd$e58497b0$0600005a@adsnm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yannick Menager wrote: > The container would generally not call isRunning().... But for example > if I have an admin console, i would like it to be able to be informed > of the state of each component. And I would like it to be a *standard* > way for any Startable Component... be it using a isRunning() type of > function, or using an event-based system, as long as it's standard :) With the notion of a block listener and appliance listener on the drawing board, there is by implication the notion of a component listener. A component listener would potentially listen to component initiated lifecycle and runtime events. However, before anything becomes "standard" it needs to be validated and proven. That means playing with container specific solutions. Stephen. > > > Jonathan Hawkes wrote: > >> In the current specification, it is fairly straightforward to >> implement an >> Avalon container. When would you suggest the container poll this new >> isRunning method? It would be preferable to have the component >> notify the >> container if it shut itself down. However, then you run the risk of >> perverting IOC. >> >> The Startable interface is simply a lifecycle interface that >> stipulates a >> contract with the container. The container does not really care what >> the >> start() and stop() methods actually do -- or even what they start or >> stop. >> The contract is simple, and I am opposed to complicating it. >> >> Components are given the resources to manage themselves (that is the >> point). >> >> ----- Original Message ----- From: "Yannick Menager" >> >> To: >> Sent: Wednesday, October 08, 2003 1:22 PM >> Subject: Re: Startable doesn't has a isRunning() interface ? >> >> >> >>> 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" >>>> >>>> To: >>>> 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 >>> >>> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org > For additional commands, e-mail: dev-help@avalon.apache.org > > -- Stephen J. McConnell mailto:mcconnell@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org