use of org.apache.servicecomb.swagger.generator.core.ClassAnnotationProcessor in project incubator-servicecomb-java-chassis by apache.
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 org.apache.servicecomb.swagger.generator.core.ClassAnnotationProcessor in project incubator-servicecomb-java-chassis by apache.
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