com.croftsoft.core.lang.lifecycle
Class CompositeLifecycle

java.lang.Object
  extended by com.croftsoft.core.lang.lifecycle.CompositeLifecycle
All Implemented Interfaces:
Commissionable, Destroyable, Initializable, Lifecycle, Resumable, Startable, Stoppable

public final class CompositeLifecycle
extends Object
implements Lifecycle

A Lifecycle using interface composition.

Since:
2006-01-03
Version:
$Id: CompositeLifecycle.java,v 1.1 2006/01/03 19:40:08 croft Exp $
Author:
David Wallace Croft

Constructor Summary
CompositeLifecycle(Initializable[] initializables, Startable[] startables, Stoppable[] stoppables, Destroyable[] destroyables)
           
 
Method Summary
 void destroy()
           
 void init()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeLifecycle

public CompositeLifecycle(Initializable[] initializables,
                          Startable[] startables,
                          Stoppable[] stoppables,
                          Destroyable[] destroyables)
Method Detail

init

public void init()
Specified by:
init in interface Initializable

start

public void start()
Specified by:
start in interface Startable

stop

public void stop()
Specified by:
stop in interface Stoppable

destroy

public void destroy()
Specified by:
destroy in interface Destroyable

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)