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
RequestContext
The request context of the running request
data
struct
The data structure passed in the event
buffer
RequestBuffer
A request buffer object for producing elegant content in ColdBox applications
rc
struct
Reference to the rc scope
prc
struct
Reference to the prc scope
Example
So, let's say we want to listen to the beforeInjectorShutdown and the afterInstanceCreation event in our listener.
Was this helpful?