public class ForestMethod<T> extends Object implements VariableScope
Constructor and Description |
---|
ForestMethod(InterfaceProxyHandler interfaceProxyHandler,
ForestConfiguration configuration,
Method method) |
Modifier and Type | Method and Description |
---|---|
void |
addMultipartFactory(ForestMultipartFactory multipartFactory)
添加Forest文件上传用的Mutlipart工厂
|
void |
addNamedParameter(MappingParameter parameter)
添加命名参数
|
void |
addVariable(String name,
MappingVariable variable)
添加变量
|
ForestConfiguration |
getConfiguration() |
MetaRequest |
getMetaRequest()
获取元请求信息
|
Method |
getMethod()
获取Forest方法对应的Java原生方法
|
String |
getMethodName()
获取方法名
|
Class |
getReturnClass() |
Type |
getReturnType()
获取方法返回值类型
|
MappingVariable |
getVariable(String name) |
Object |
getVariableValue(String name) |
Object |
invoke(Object[] args)
调用方法
|
MappingTemplate |
makeTemplate(String text) |
void |
processParameterFilter(MappingParameter parameter,
String filterName)
处理参数的过滤器
|
void |
setMetaRequest(MetaRequest metaRequest) |
public ForestMethod(InterfaceProxyHandler interfaceProxyHandler, ForestConfiguration configuration, Method method)
public ForestConfiguration getConfiguration()
getConfiguration
in interface VariableScope
public Object getVariableValue(String name)
getVariableValue
in interface VariableScope
public MappingTemplate makeTemplate(String text)
public Class getReturnClass()
public MappingVariable getVariable(String name)
getVariable
in interface VariableScope
public void setMetaRequest(MetaRequest metaRequest)
public String getMethodName()
public MetaRequest getMetaRequest()
MetaRequest
类实例public void addNamedParameter(MappingParameter parameter)
parameter
- 方法参数-字符串模板解析对象,MappingParameter
类实例public void addVariable(String name, MappingVariable variable)
name
- 变量名variable
- 变量对象,MappingVariable
类实例public void addMultipartFactory(ForestMultipartFactory multipartFactory)
multipartFactory
- Forest文件上传用的Mutlipart工厂,ForestMultipartFactory
类实例public void processParameterFilter(MappingParameter parameter, String filterName)
parameter
- 方法参数-字符串模板解析对象,MappingParameter
类实例filterName
- 过滤器名称public Object invoke(Object[] args)
args
- 调用本对象对应方法时传入的参数数组Copyright © 2020. All rights reserved.