Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 588 Bytes

programmatic-registration.md

File metadata and controls

14 lines (10 loc) · 588 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" ] );