public class JSONBodyLifeCycle extends AbstractBodyLifeCycle<JSONBody>
Constructor and Description |
---|
JSONBodyLifeCycle() |
Modifier and Type | Method and Description |
---|---|
boolean |
beforeExecute(ForestRequest request) |
void |
onParameterInitialized(ForestMethod method,
MappingParameter parameter,
JSONBody annotation)
在被注解修饰的方法参数初始化时被调用
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onError, onSuccess
addAttribute, afterExecute, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsString, getAttributes, onInvokeMethod, onLoadCookie, onProgress, onSaveCookie
public void onParameterInitialized(ForestMethod method, MappingParameter parameter, JSONBody annotation)
ParameterAnnotationLifeCycle
onParameterInitialized
in interface ParameterAnnotationLifeCycle<JSONBody,Object>
onParameterInitialized
in class AbstractBodyLifeCycle<JSONBody>
method
- ForestMethod
对象parameter
- MappingParameter
对象annotation
- 该生命周期类所绑定的注解对象public boolean beforeExecute(ForestRequest request)
Copyright © 2020. All rights reserved.