A
- 注解类I
- 返回类型public interface MethodAnnotationLifeCycle<A extends Annotation,I> extends Interceptor<I>
Modifier and Type | Method and Description |
---|---|
default void |
onError(ForestRuntimeException ex,
ForestRequest request,
ForestResponse response)
请求失败后调用该方法
|
void |
onMethodInitialized(ForestMethod method,
A annotation) |
default void |
onSuccess(I data,
ForestRequest request,
ForestResponse response)
请求成功后调用该方法
|
addAttribute, afterExecute, beforeExecute, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsString, getAttributes, onInvokeMethod, onLoadCookie, onProgress, onSaveCookie
void onMethodInitialized(ForestMethod method, A annotation)
default void onError(ForestRuntimeException ex, ForestRequest request, ForestResponse response)
OnError
default void onSuccess(I data, ForestRequest request, ForestResponse response)
OnSuccess
Copyright © 2020. All rights reserved.