avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <...@leosimons.com>
Subject Re: Runnable - Avalon Framework Lifecycle interface?
Date Tue, 02 Apr 2002 11:45:58 GMT
No, it is not...
http://jakarta.apache.org/avalon/framework/lifecycle.html...

"Note:java.lang.Runnable has also been in use as a lifecycle interface. This is not recommended
and is not supported by Avalon. Instead, the run() method is the responsibility of the Component
itself. If you wish to use it, call it from within start() or another method."

cheers,

- Leo


On Tue, 02 April 2002, Paul Hammant wrote:

> 
> Folks,
> 
> Is java.lang.Runnable a lifecycle interface?  Does it imply that the 
> implementing component should be placed in a Thread? :
> 
>   if (comp instanceof Initializable) {
>     ((Initializable comp).initialize() {
>   }
> 
>   if (comp instanceof Startable) {
>     ((Startable comp).start() {
>   }
> 
>   if (comp instanceof Runnable) {
>     Thread t = getThread((Runnable) comp);
>     t.start();
>   }
> 
> I ask because EOB has daemon beans that treat Runnable as a lifecycle 
> interface.
> 
> - Paul
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>


__________________________________________
Launch your own web site Today!
Create a Web site for your family,
friends, photos, or a special event.
Visit: http://www.namezero.com/sitebuilder

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


Mime
View raw message