public class ForestMethod<T> extends Object implements VariableScope
Constructor and Description |
---|
ForestMethod(InterfaceProxyHandler interfaceProxyHandler,
ForestConfiguration configuration,
Method method) |
public ForestMethod(InterfaceProxyHandler interfaceProxyHandler, ForestConfiguration configuration, Method method)
public ForestConfiguration getConfiguration()
getConfiguration
in interface VariableScope
public boolean isVariableDefined(String name)
isVariableDefined
in interface VariableScope
public Object getVariableValue(String name)
getVariableValue
in interface VariableScope
public Object getVariableValue(String name, ForestMethod method)
getVariableValue
in interface VariableScope
public MappingTemplate makeTemplate(MappingParameter parameter)
public MappingTemplate makeTemplate(Class<? extends Annotation> annotationType, String attributeName, String text)
public MappingURLTemplate makeURLTemplate(Class<? extends Annotation> annotationType, String attributeName, String text)
public MappingVariable getVariable(String name)
getVariable
in interface VariableScope
public MappingParameter[] getParameters()
public void setExtensionParameterValue(String name, Object value)
name
- 参数名value
- 参数值public Object getExtensionParameterValue(String name)
name
- 参数名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
- 调用本对象对应方法时传入的参数数组public void setReturnType(Type returnType)
returnType
- 方法返回值类型,Type
接口实例public MappingParameter getReturnTypeParameter()
MappingParameter
实例public void setReturnTypeParameter(MappingParameter returnTypeParameter)
returnTypeParameter
- MappingParameter
实例Copyright © 2022. All rights reserved.