handlerWrapper property

  1. @Deprecated('Annotation function with @RequestHandlerWrapper, unless using' ' the scan library which still relies on this.')
HandlerWrapper? handlerWrapper
getter/setter pair

Wrapper for the annotated function.

If this is set, it is used to process the object with the Handles annotation, before it is used as a RequestHandler in a pipeline's rule.

For example, this allows the request handler to perform some common code, before invoking the annotated function. The annotated function does not have to be a RequestHandler, as long as this handler wrapper returns a RequestHandler.

If set, this handler wrapper is always invoked -- even if the annotated object is already a RequestHandler.

Implementation

@Deprecated('Annotation function with @RequestHandlerWrapper, unless using'
    ' the scan library which still relies on this.')
static HandlerWrapper? handlerWrapper;