Announcing Interception points in a service

Announcing interceptors couldn’t be easier inside of a controller


but I am a little confused how to do this from a service class I created. The docs say…

Announcing Interceptions

There are two ways to announce interceptions:

  1. announceInterception(state, interceptData) inherited by plugins, handlers and interceptors.
  2. getController().getInterceptorService().processState(state,interceptData)’ via the controller.

I don’t have access to either of these methods in my service, so not quite sure what to do here.

You need to use dependency injection for this. You need to inject the interceptor service into your model objects for event announcements.

property name=“eventService” inject=“coldbox:interceptorService”;


Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform:
Linked In:
IECFUG Manager: