@Test public void testExcludeByPackage() { List<String> excludePackages = Arrays.asList("uk\\.gov\\.dstl\\.baleen\\.test", ".*\\.helpers"); assertTrue(excludeByPackage("uk.gov.dstl.baleen.test", excludePackages)); assertTrue(excludeByPackage("uk.gov.dstl.baleen.helpers", excludePackages)); assertTrue(excludeByPackage("uk.gov.dstl.helpers", excludePackages)); assertFalse(excludeByPackage("uk.gov.dstl.test", excludePackages)); }
public static boolean excludeByPackage(String pkg, List<String> excludePkg) { for (String ep : excludePkg) { if (pkg.matches(ep)) { return true; } } return false; }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByPackage(String pkg, List<String> excludePkg) { for (String ep : excludePkg) { if (pkg.matches(ep)) { return true; } } return false; } }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByPackage(String pkg, List<String> excludePkg) { for (String ep : excludePkg) { if (pkg.matches(ep)) { return true; } } return false; } AbstractComponentApiServlet(
      String componentClass,
      String componentPackage,
      List<String> excludeClass,
      List<String> excludePackage,
      Class<?> clazz); }
AbstractComponentApiServlet extends AbstractApiServlet { public static boolean excludeByPackage(String pkg, List<String> excludePkg) { for (String ep : excludePkg) { if (pkg.matches(ep)) { 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 excludeByPackage(String pkg, List<String> excludePkg) { for (String ep : excludePkg) { if (pkg.matches(ep)) { 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);  }