|
ShrinkWrap Resolver Maven API 2.0.0-alpha-4 | |||||||||
| 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)
Determines whether or not a MavenDependency is accepted by this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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)
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
transitivity
MavenResolutionFilter.accepts(org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency,
java.util.List)
|
ShrinkWrap Resolver Maven API 2.0.0-alpha-4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||