avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <Paul_Hamm...@yahoo.com>
Subject Runnable - Avalon Framework Lifecycle interface?
Date Tue, 02 Apr 2002 09:44:40 GMT
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>


Mime
View raw message