use of io.servicecomb.swagger.generator.core.MethodAnnotationProcessor in project java-chassis by ServiceComb.
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 io.servicecomb.swagger.generator.core.MethodAnnotationProcessor in project java-chassis by ServiceComb.
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);
}
}
use of io.servicecomb.swagger.generator.core.MethodAnnotationProcessor in project java-chassis by ServiceComb.
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);
}
}
Aggregations