@Test public void testExcludeByClass() { List<Class<?>> excludeClasses = Arrays.asList(Number.class, String.class); assertTrue(excludeByClass(Number.class, excludeClasses)); assertTrue(excludeByClass(Integer.class, excludeClasses)); assertTrue(excludeByClass("Hello".getClass(), excludeClasses)); assertFalse(excludeByClass(Boolean.class, excludeClasses)); }
public static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz) { for (Class<?> ec : excludeClazz) { if (ec.isAssignableFrom(clazz)) { return true; } } return false; }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz) { for (Class<?> ec : excludeClazz) { if (ec.isAssignableFrom(clazz)) { return true; } } return false; } }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz) { for (Class<?> ec : excludeClazz) { if (ec.isAssignableFrom(clazz)) { return true; } } return false; } AbstractComponentApiServlet(
      String componentClass,
      String componentPackage,
      List<String> excludeClass,
      List<String> excludePackage,
      Class<?> clazz); }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz) { for (Class<?> ec : excludeClazz) { if (ec.isAssignableFrom(clazz)) { return true; } } return false; } AbstractComponentApiServlet(
      String componentClass,
      String componentPackage,
      List<String> excludeClass,
      List<String> excludePackage,
      Class<?> clazz); static boolean excludeByPackage(String pkg, List<String> excludePkg); static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz); }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz) { for (Class<?> ec : excludeClazz) { if (ec.isAssignableFrom(clazz)) { return true; } } return false; } AbstractComponentApiServlet(
      String componentClass,
      String componentPackage,
      List<String> excludeClass,
      List<String> excludePackage,
      Class<?> clazz); static boolean excludeByPackage(String pkg, List<String> excludePkg); static boolean excludeByClass(Class<?> clazz, List<Class<?>> excludeClazz);  }