org.apache.velocity.app.event
Class EventCartridge

Stores the event handlers. Event handlers can be assigned on a per
VelocityEngine instance basis by specifying the class names in the
velocity.properties file. Event handlers may also be assigned on a per-page
basis by creating a new instance of EventCartridge, adding the event
handlers, and then calling attachToContext. For clarity, it's recommended
that one approach or the other be followed, as the second method is primarily
presented for backwards compatibility.

Note that Event Handlers follow a filter pattern, with multiple event
handlers allowed for each event. When the appropriate event occurs, all the
appropriate event handlers are called in the sequence they were added to the
Event Cartridge. See the javadocs of the specific event handler interfaces
for more details.

initialize

Initialize the handlers. For global handlers this is called when Velocity
is initialized. For local handlers this is called when the first handler
is executed. Handlers will not be initialized more than once.