public enum AcceptAllFilter extends Enum<AcceptAllFilter> implements MavenResolutionFilter
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(MavenDependency dependency,
List<MavenDependency> dependenciesForResolution,
List<MavenDependency> dependencyAncestors)
Determines whether a
MavenDependency is accepted by this filter. |
static AcceptAllFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcceptAllFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcceptAllFilter INSTANCE
public static AcceptAllFilter[] values()
for (AcceptAllFilter c : AcceptAllFilter.values()) System.out.println(c);
public static AcceptAllFilter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean accepts(MavenDependency dependency, List<MavenDependency> dependenciesForResolution, List<MavenDependency> dependencyAncestors)
MavenDependency is accepted by this filter. The filtering mechanism may
consult the project's explicitly-defined dependencies and dependencyManagement (guaranteed immutable
and non-null) in determining whether filtering should be applied.accepts in interface MavenResolutionFilterdependency - Candidate for inclusiondependenciesForResolution - Explicitly-declared dependencies for the current session, does not include those obtained via
transitivitydependencyAncestors - A list of ancestors of the candidate for inclusion.MavenDependency is accepted by this filter.MavenResolutionFilter.accepts(org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency,
java.util.List,java.util.List)Copyright © 2025 JBoss by Red Hat. All rights reserved.