ColdBox Mode Listener
ColdBox Interceptors
In ColdBox, you will create ColdBox Interceptors to listen to any event in the application. Each of these methods that listen to events receive the following arguments:
Argument | Type | Description |
event |
| The request context of the running request |
data |
| The data structure passed in the event |
buffer |
| A request buffer object for producing elegant content in ColdBox applications |
rc |
| Reference to the |
prc |
| Reference to the |
Example
So, let's say we want to listen to the beforeInjectorShutdown
and the afterInstanceCreation
event in our listener.
Last updated