/** * Get a path filter which returns {@code true} if any of the given filters return {@code true}. * * @param filters the filters * @return the "any" filter */ public static PathFilter any(Collection<PathFilter> filters) { return any(filters.toArray(new PathFilter[filters.size()])); }
/** * Get a path filter which returns {@code true} if any of the given filters return {@code true}. * * @param filters the filters * @return the "any" filter */ public static PathFilter any(Collection<PathFilter> filters) { return any(filters.toArray(new PathFilter[filters.size()])); }
/** * Get a path filter which returns {@code true} if none of the given filters return {@code true}. * * @param filters the filters * @return the "none" filter */ public static PathFilter none(Collection<PathFilter> filters) { return not(any(filters)); }
/** * Get a path filter which returns {@code true} if none of the given filters return {@code true}. * * @param filters the filters * @return the "none" filter */ public static PathFilter none(PathFilter... filters) { return not(any(filters)); }
/** * Get a path filter which returns {@code true} if none of the given filters return {@code true}. * * @param filters the filters * @return the "none" filter */ public static PathFilter none(PathFilter... filters) { return not(any(filters)); }
/** * Get a path filter which returns {@code true} if none of the given filters return {@code true}. * * @param filters the filters * @return the "none" filter */ public static PathFilter none(Collection<PathFilter> filters) { return not(any(filters)); }
/** * Get a path filter which matches any path which is equal to, or a child of, the given path name. * * @param path the path name * @return a filter which returns {@code true} if the path name is equal to, or a child of, the given path */ public static PathFilter isOrIsChildOf(String path) { return any(is(path), isChildOf(path)); }
/** * Get a path filter which matches any path which is equal to, or a child of, the given path name. * * @param path the path name * @return a filter which returns {@code true} if the path name is equal to, or a child of, the given path */ public static PathFilter isOrIsChildOf(String path) { return any(is(path), isChildOf(path)); }
@Override protected void configure(ModuleLoader loader, Builder builder) { builder.addDependency(DependencySpec.createSystemDependencySpec( PathFilters.acceptAll(), PathFilters.any(Arrays.asList( PathFilters.isChildOf("javax"), PathFilters.is("org/jboss/weld"), PathFilters.isChildOf("org/jboss/weld"))), systemPaths)); }
filter = PathFilters.acceptAll(); } else { filter = PathFilters.any(PathFilters.is(realStartName), PathFilters.isChildOf(realStartName));
filter = PathFilters.acceptAll(); } else { filter = PathFilters.any(PathFilters.is(realStartName), PathFilters.isChildOf(realStartName));
@Override protected void configure(ModuleLoader loader, Builder builder) { builder.addDependency(DependencySpec.createSystemDependencySpec( PathFilters.acceptAll(), PathFilters.any(Arrays.asList( PathFilters.is("META-INF/services"), PathFilters.is("org/jboss/forge/container"), PathFilters.isChildOf("org/jboss/forge/container"), PathFilters.is("org/jboss/forge/proxy"), PathFilters.isChildOf("org/jboss/forge/proxy"), PathFilters.is("javassist"), PathFilters.isChildOf("javassist") )), systemPaths)); }