io.swagger.jaxrs.config.DefaultJaxrsScanner Maven / Gradle / Ivy
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 {
@Override
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