com.github.kongchen.swagger.docgen.reader.ServletReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-maven-plugin
Show all versions of swagger-maven-plugin
A maven build plugin which helps you generate API document during build phase
package com.github.kongchen.swagger.docgen.reader;
import java.util.Set;
import org.apache.maven.plugin.logging.Log;
import com.github.kongchen.swagger.docgen.GenerateException;
import io.swagger.models.Swagger;
import io.swagger.servlet.Reader;
/**
* A dedicated {@link ClassSwaggerReader} to scan Serlet classes.
*/
public class ServletReader extends AbstractReader implements ClassSwaggerReader {
public ServletReader(Swagger swagger, Log LOG) {
super(swagger, LOG);
}
@Override
public Swagger read(Set> classes) throws GenerateException {
Reader.read(swagger, classes );
return swagger;
}
}