A
- 注解类I
- 返回类型public interface ParameterAnnotationLifeCycle<A extends Annotation,I> extends Interceptor<I>
Modifier and Type | Method and Description |
---|---|
default void |
onError(ForestRuntimeException ex,
ForestRequest request,
ForestResponse response)
请求失败后调用该方法
|
void |
onParameterInitialized(ForestMethod method,
MappingParameter parameter,
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 onParameterInitialized(ForestMethod method, MappingParameter parameter, A annotation)
method
- ForestMethod
对象parameter
- MappingParameter
对象annotation
- 该生命周期类所绑定的注解对象default void onSuccess(I data, ForestRequest request, ForestResponse response)
OnSuccess
default void onError(ForestRuntimeException ex, ForestRequest request, ForestResponse response)
OnError
Copyright © 2020. All rights reserved.