Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 372 Bytes

File metadata and controls

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