|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.api.maven.filter.ScopeFilter
public class ScopeFilter
A filter which limits scope of the artifacts. Only the artifacts within specified scopes are included in resolution.
| Constructor Summary | |
|---|---|
ScopeFilter()
Creates a filter which accepts all artifacts that have scope { ScopeType.COMPILE |
|
ScopeFilter(ScopeType... scopes)
Creates a filter which accepts all artifacts which have scope matching one of those specified here. |
|
| Method Summary | |
|---|---|
boolean |
accepts(MavenDependency dependency,
List<MavenDependency> dependenciesForResolution,
List<MavenDependency> dependencyAncestors)
Determines whether or not a MavenDependency is accepted by this filter. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScopeFilter()
ScopeType.COMPILE
public ScopeFilter(ScopeType... scopes)
ScopeType.COMPILE will be allowed as a default.
scopes - The enumeration of allowed scopes| Method Detail |
|---|
public 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.
MavenResolutionFilter.accepts(org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency,
java.util.List, java.util.List)public String toString()
toString in class Object
|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||