private class RouteFilter extends AbstractTypeFilter {
@Override
public boolean matches(Class<?> clazz) {
// Check to see if it's been excluded from scans
Scannable scannable = clazz.getAnnotation(Scannable.class);
if (scannable != null && !scannable.value()) {
return false;
}
// Can't be an interface or abstract class
if (clazz.isInterface() || Modifier.isAbstract(clazz.getModifiers())) {