com.croftsoft.core.lang.lifecycle
Class LifecycleLib

java.lang.Object
  extended by com.croftsoft.core.lang.lifecycle.LifecycleLib

public final class LifecycleLib
extends Object

Convenience methods for Lifecycle objects.

Since:
2002-02-15
Version:
$Date: 2008/04/19 21:27:13 $
Author:
David Wallace Croft

Method Summary
static void destroy(Destroyable... destroyables)
          Destroys the destroyables, catching and printing any Exception.
static void destroy(Destroyable destroyable)
          Destroys the destroyable, catching and printing any Exception.
static void init(Initializable... initializables)
          Initializes the initializables, catching and printing any Exception.
static void init(Initializable initializable)
          Initializes the initializable, catching and printing any Exception.
static void start(Startable... startables)
          Starts the startables, catching and printing any Exception.
static void start(Startable startable)
          Starts the startable, catching and printing any Exception.
static void stop(Stoppable... stoppables)
          Stops the stoppables, catching and printing any Exception.
static void stop(Stoppable stoppable)
          Stops the stoppable, catching and printing any Exception.
static void update(Updatable... updatables)
          Updates the updatables, catching and printing any Exception.
static void update(Updatable updatable)
          Updates the updatable, catching and printing any Exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(Initializable initializable)
Initializes the initializable, catching and printing any Exception.

Parameters:
initializable - If null, does nothing.

init

public static void init(Initializable... initializables)
Initializes the initializables, catching and printing any Exception.

Parameters:
initializables - If null, does nothing.

start

public static void start(Startable startable)
Starts the startable, catching and printing any Exception.

Parameters:
startable - If null, does nothing.

start

public static void start(Startable... startables)
Starts the startables, catching and printing any Exception.

Parameters:
startables - If null, does nothing.

stop

public static void stop(Stoppable stoppable)
Stops the stoppable, catching and printing any Exception.

Parameters:
stoppable - If null, does nothing.

stop

public static void stop(Stoppable... stoppables)
Stops the stoppables, catching and printing any Exception.

Parameters:
stoppables - If null, does nothing.

destroy

public static void destroy(Destroyable destroyable)
Destroys the destroyable, catching and printing any Exception.

Parameters:
destroyable - If null, does nothing.

destroy

public static void destroy(Destroyable... destroyables)
Destroys the destroyables, catching and printing any Exception.

Parameters:
destroyables - If null, does nothing.

update

public static void update(Updatable updatable)
Updates the updatable, catching and printing any Exception.

Parameters:
updatable - If null, does nothing.

update

public static void update(Updatable... updatables)
Updates the updatables, catching and printing any Exception.

Parameters:
updatables - If null, does nothing.

CroftSoft Javadoc

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