Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 371 Bytes

dynamic-registration.md

File metadata and controls

9 lines (7 loc) · 371 Bytes

Dynamic Registration

Instead of creating an Interceptor and registering this interceptor programmatically or in configuration, you can do this directly in code by registrering one-off closures with the new listen supertype.

controller.getInterceptorService().listen( function(){
    log.info( "executing from closure listener")
}, "preProcess" );