use of io.servicecomb.swagger.generator.core.ClassAnnotationProcessor in project java-chassis by ServiceComb.
the class ApiImplicitParamsClassProcessor method process.
@Override
public void process(Object annotation, SwaggerGenerator swaggerGenerator) {
ApiImplicitParams apiImplicitParamsAnnotation = (ApiImplicitParams) annotation;
ClassAnnotationProcessor processor = swaggerGenerator.getContext().findClassAnnotationProcessor(ApiImplicitParam.class);
for (ApiImplicitParam paramAnnotation : apiImplicitParamsAnnotation.value()) {
processor.process(paramAnnotation, swaggerGenerator);
}
}
use of io.servicecomb.swagger.generator.core.ClassAnnotationProcessor in project java-chassis by ServiceComb.
the class ApiResponsesClassProcessor method process.
@Override
public void process(Object annotation, SwaggerGenerator swaggerGenerator) {
ApiResponses apiResponses = (ApiResponses) annotation;
ClassAnnotationProcessor processor = swaggerGenerator.getContext().findClassAnnotationProcessor(ApiResponse.class);
for (ApiResponse apiResponse : apiResponses.value()) {
processor.process(apiResponse, swaggerGenerator);
}
}
Aggregations