HandlerWrapper typedef
- @Deprecated('Annotation function with @RequestHandlerWrapper instead,' ' unless using the woomera "scan" library which still uses this.')
Function type for handler wrapper.
Set the Handles.handlerWrapper to a function of this type.
A handler wrapper is a function that the application provides for use in converting the object that has a Handles annotation into a RequestHandler function. It is used for the Handles.handlerWrapper.
Note: currently registration annotations are only used when they are on top level functions and static methods. Therefore, the object passed to the handler wrapper is always a Function. An implementation of a HandlerWrapper should keep in mind that a future release might also allow the annotation to be used elsewhere too.
Implementation
@Deprecated('Annotation function with @RequestHandlerWrapper instead,'
' unless using the woomera "scan" library which still uses this.')
typedef HandlerWrapper = RequestHandler Function(Handles rego, Object obj);