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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


__________________________________________
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to