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 LifecycleHibernateTasks

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

public final class LifecycleHibernateTasks
extends java.lang.Object

utility class with startup and shutdown tasks of the Lifecycle.

Version:
$Revision: 2045 $
Author:
Thomas Weber

Method Summary
protected static void addBundleToHibernate(Bundle bundle, Lifecycle lc)
          adds a Bundle to HibernateTM or refreshes the Object with the persisted data.
protected static void executePostHibernateStartUpSQL(ServletConfig config, Lifecycle lc)
          executes the post HibernateTM startup custom SQL defined in pulse.xml.
protected static void initialiseHibernate(Lifecycle lc)
          Initialises the HibernateDataSource.
protected static void initialiseHibernate2ndLevelCache(java.io.File cacheConfigFile, org.jdom.Element hibernateConfig, Lifecycle lc)
          initialises the settings for HibernateTM's 2nd level cache.
protected static void initialiseRegistries(Lifecycle lc)
          initialises the ContentRegistry, the Sitemap and the AttributeRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialiseRegistries

protected static void initialiseRegistries(Lifecycle lc)
initialises the ContentRegistry, the Sitemap and the AttributeRegistry.

Builds a ContentRegisty, if no ContentRegistry is stored. Adds a RegistryBundleNode for each Bundle which has contents defined in its bundle.xml and that is not in the ContentRegistry.

Parameters:
lc - the lifecycle

initialiseHibernate

protected static void initialiseHibernate(Lifecycle lc)
Initialises the HibernateDataSource.

Parameters:
lc - the lifecycle

initialiseHibernate2ndLevelCache

protected static void initialiseHibernate2ndLevelCache(java.io.File cacheConfigFile,
                                                       org.jdom.Element hibernateConfig, Lifecycle lc)
initialises the settings for HibernateTM's 2nd level cache.

Parameters:
cacheConfigFile - the cache configuration file
hibernateConfig - the preparsed configuration from "pulse.xml"
lc - the lifecycle

addBundleToHibernate

protected static void addBundleToHibernate(Bundle bundle, Lifecycle lc)
adds a Bundle to HibernateTM or refreshes the Object with the persisted data.

Parameters:
bundle - the Bundle to be processed
lc - the lifecycle

executePostHibernateStartUpSQL

protected static void executePostHibernateStartUpSQL(ServletConfig config, Lifecycle lc)
executes the post HibernateTM startup custom SQL defined in pulse.xml.

Parameters:
config - the main configuration
lc - the lifecycle