ColdBox Mode Listener
ColdBox Interceptors
Last updated
ColdBox Interceptors
Last updated
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:
So, let's say we want to listen to the beforeInjectorShutdown
and the afterInstanceCreation
event in our listener.
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