Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 589 Bytes

File metadata and controls

15 lines (10 loc) · 589 Bytes

Programmatic Registration

You can use the interceptor service to register new events or interception points via the appendInterceptionPoints() method. This way you can dynamically register events in your system:

public any appendInterceptionPoints( array or list customPoints )

The value of the customPoints argument can be a list or an array of interception points to register so the interceptor service can manage them for you:

controller.getInterceptorService()
    .appendInterceptionPoints( [ "onLog", "onError", "onRecordInserted" ] );