Version 4.7.1

hirondelle.web4j
Interface StartupTasks


public interface StartupTasks

Perform startup tasks.

See BuildImpl for important information on how this item is configured. BuildImpl.forStartupTasks() returns the configured implementation of this interface.

Allows the application programmer to perform any needed initialization tasks.

These tasks are performed only once, upon startup. For example, the application may need to place items into application scope. Here is an example implementation taken from the WEB4J example application.

These startup tasks are called only after the data layer has successfully initialized. See ConnectionSource.init(ServletConfig), for startup tasks related to database connections.


Method Summary
 void startApplication(ServletConfig aConfig)
          Perform any startup tasks needed by the application.
 

Method Detail

startApplication

void startApplication(ServletConfig aConfig)
                      throws AppException
Perform any startup tasks needed by the application.

Possible tasks include :

This method is called by WEB4J near the end of startup processing, after the data layer has been initialized. Thus, your implementation or this method can access the database in the normal way.

Throws:
AppException

Version 4.7.1

Copyright Hirondelle Systems. Published September 24, 2011 - User Guide - All Docs.