接口 AnnotatedMethodParameterProcessor
-
- 所有超级接口:
Comparable<org.apache.dubbo.common.lang.Prioritized>,org.apache.dubbo.common.lang.Prioritized
- 所有已知实现类:
AbstractAnnotatedMethodParameterProcessor,AbstractRequestAnnotationParameterProcessor,DefaultValueParameterProcessor,FormParamParameterProcessor,HeaderParamParameterProcessor,MatrixParamParameterProcessor,ParamAnnotationParameterProcessor,QueryParamParameterProcessor,RequestHeaderParameterProcessor,RequestParamParameterProcessor
@SPI public interface AnnotatedMethodParameterProcessor extends org.apache.dubbo.common.lang.PrioritizedThe interface to process the annotated method parameter- 从以下版本开始:
- 2.7.6
-
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 static StringbuildDefaultValue(int parameterIndex)Build the default valueStringgetAnnotationType()The string presenting the annotation typevoidprocess(Annotation annotation, Parameter parameter, int parameterIndex, Method method, Class<?> serviceType, Class<?> serviceInterfaceClass, RestMethodMetadata restMethodMetadata)Process the specified methodparameter
-
-
-
方法详细资料
-
getAnnotationType
String getAnnotationType()
The string presenting the annotation type- 返回:
- non-null
-
process
void process(Annotation annotation, Parameter parameter, int parameterIndex, Method method, Class<?> serviceType, Class<?> serviceInterfaceClass, RestMethodMetadata restMethodMetadata)
Process the specified methodparameter- 参数:
annotation-the target annotationwhose type isgetAnnotationType()parameter- the method parameterparameterIndex- the index of method parametermethod-method that parameter belongs toserviceType- Dubbo Service interface or typeserviceInterfaceClass- The type of Dubbo Service interfacerestMethodMetadata-the metadata is used to update
-
buildDefaultValue
static String buildDefaultValue(int parameterIndex)
Build the default value- 参数:
parameterIndex- the index of parameter- 返回:
- the placeholder
-
-