use of org.apache.servicecomb.swagger.generator.core.MethodAnnotationProcessor in project incubator-servicecomb-java-chassis by apache.
the class ApiResponsesMethodProcessor method process.
@Override
public void process(Object annotation, OperationGenerator operationGenerator) {
ApiResponses apiResponses = (ApiResponses) annotation;
MethodAnnotationProcessor processor = operationGenerator.getContext().findMethodAnnotationProcessor(ApiResponse.class);
for (ApiResponse apiResponse : apiResponses.value()) {
processor.process(apiResponse, operationGenerator);
}
}
use of org.apache.servicecomb.swagger.generator.core.MethodAnnotationProcessor in project incubator-servicecomb-java-chassis by apache.
the class ResponseHeadersProcessor method process.
@Override
public void process(Object annotation, OperationGenerator operationGenerator) {
ResponseHeaders responseHeaders = (ResponseHeaders) annotation;
MethodAnnotationProcessor processor = operationGenerator.getContext().findMethodAnnotationProcessor(ResponseHeader.class);
for (ResponseHeader responseHeader : responseHeaders.value()) {
processor.process(responseHeader, operationGenerator);
}
}
use of org.apache.servicecomb.swagger.generator.core.MethodAnnotationProcessor in project incubator-servicecomb-java-chassis by apache.
the class ApiImplicitParamsMethodProcessor method process.
@Override
public void process(Object annotation, OperationGenerator operationGenerator) {
ApiImplicitParams apiImplicitParamsAnnotation = (ApiImplicitParams) annotation;
MethodAnnotationProcessor processor = operationGenerator.getContext().findMethodAnnotationProcessor(ApiImplicitParam.class);
for (ApiImplicitParam paramAnnotation : apiImplicitParamsAnnotation.value()) {
processor.process(paramAnnotation, operationGenerator);
}
}
Aggregations