Ticket #14 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Add an onApplicationStart setting to the config

Reported by: oarevalo@gmail.com Assigned to: luis
Priority: normal Milestone: Pre-Public Beta Release
Component: General Category Version: 0.9.X Pre-Beta
Severity: normal Keywords:
Cc:

Description

I wish coldbox allowed me to indicate a method to execute whenever the application is initialized, and set this on the config.xml the same way I set the onRequestStart method. The idea is to have a place where I could centralize the application initialization tasks, like loading configuration settings and things like that. Using the application.cfc onApplicationStart for this would be perfect, except that I would like to call this whenever I wanted to reinitialize the application manually. Also, this method should be called when I reinitialize the framework manually too with fwreinit.

Change History

06/30/06 05:55:57 changed by luis

  • status changed from new to assigned.
  • milestone set to Pre-Public Beta Release.

07/03/06 21:28:00 changed by luis

  • status changed from assigned to closed.
  • resolution set to fixed.

Finished

when you reinitialize the framework: fwreinit=1 then the ApplicationStartHandler? will be fired. This is setup in the config.xml

<Setting name="ApplicationStartHandler" value="ehGeneral.onApplicationStart" />

Copyright 2006 ColdBox Framework by Luis Majano