I would say it's the responsibility of the component to act as a container for any threads it starts up. Just because a component implements Startable does not necessarily mean that it is going to allocate its own threads. (Granted, that will be the case 99.9% of the time.)
----- Original Message ----- From: "Stephen McConnell" <[EMAIL PROTECTED]> To: "Avalon Developers List" <[EMAIL PROTECTED]> Sent: Wednesday, October 08, 2003 10:53 AM Subject: Re: Startable doesn't has a isRunning() interface ? > > > 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() ). > > > > Yeeees .. but! > > Consdider the component in question has been started. The component gets > everything it needs from the container and goes about its business and in > the case of a startable component this typically means that the component > is creating its own thread of execution. Assuming that something goes > wrong - there is not contractual interface through which the component > can notify the container that it's execution thread has terminated. > > I think the real underlying issue here is component/container > responsibility. Who should be creating and supervising/monitoring the > thread - the component or the container? > > Stephen. > > > > > > >----- Original Message ----- > >From: "Yannick Menager" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >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: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > > Stephen J. McConnell > mailto:[EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
