io.swagger.jaxrs.config.DefaultJaxrsScanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package io.swagger.jaxrs.config;
import javax.servlet.ServletConfig;
import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;
public class DefaultJaxrsScanner extends AbstractScanner implements JaxrsScanner {
private boolean prettyPrint = false;
public Set> classesFromContext(Application app, ServletConfig sc) {
Set> output = new HashSet>();
if (app != null) {
Set> clz = app.getClasses();
if (clz != null) {
output.addAll(clz);
}
Set