com.croftsoft.core.lang.lifecycle
Class CompositeLifecycle
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeLifecycle
public CompositeLifecycle(Initializable[] initializables,
Startable[] startables,
Stoppable[] stoppables,
Destroyable[] destroyables)
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 Core Javadoc (2008-09-28 20:58:02)