pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.invocation.lifecycle
Class LifecycleBundleTasks

java.lang.Object
  extended by org.torweg.pulse.invocation.lifecycle.LifecycleBundleTasks

public final class LifecycleBundleTasks
extends java.lang.Object

utility class with startup and shutdown tasks of the Lifecycle.

Version:
$Revision: 1809 $
Author:
Thomas Weber

Method Summary
protected static Bundle initBundle(java.io.File bundleDir, Lifecycle lc)
          initialises a single bundle.
protected static void initialiseBundles(java.util.List<java.io.File> bundleDirs, Lifecycle lc)
          initialises all bundles.
protected static void processControllerAnnotations(Lifecycle lc)
          processes the @Permission and @Group controller annotations.
protected static void stopBundles(Lifecycle lc)
          stops all Bundles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialiseBundles

protected static void initialiseBundles(java.util.List<java.io.File> bundleDirs, Lifecycle lc)
initialises all bundles.

Parameters:
bundleDirs - the base directories of the bundle's to be initialised
lc - the lifecycle

initBundle

protected static Bundle initBundle(java.io.File bundleDir, Lifecycle lc)
initialises a single bundle.

TODO: make JAXB compatible (unmarshal bundle from the given file)

Parameters:
bundleDir - the root directory of the bundle
lc - the lifecycle
Returns:
the initialised bundle

stopBundles

protected static void stopBundles(Lifecycle lc)
stops all Bundles.

Parameters:
lc - the lifecycle

processControllerAnnotations

protected static void processControllerAnnotations(Lifecycle lc)
processes the @Permission and @Group controller annotations.

Parameters:
lc - the lifecycle
See Also:
Permission, Groups