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" );

Last updated