Interceptors
BoxLang is an event-driven language and you can not only listen, but register and announce events.
Last updated
Was this helpful?
BoxLang is an event-driven language and you can not only listen, but register and announce events.
Last updated
Was this helpful?
BoxLang is an event-driven language and it emits events throughout many different life-cycles. The entire framework for events is also extensible and can be used not only by Module developers but by anybody using the language in either BoxLang or Java.
The way that interceptors are used is usually referred to as event-driven programming, which can be very familiar if you are already doing any Nodejs or observer/observable coding. You can listen and execute intercepting points anywhere you like in your application, you can even produce content whenever you announce these events.
Below are just a few applications of BoxLang Interceptors:
Security
Event based Security
Method Tracing
AOP Interceptions
Publisher/Consumer operations
Implicit chain of events
Content Appending or Pre-Pending
View Manipulations
Custom SES support
Cache advices on insert and remove
Much much more...