|
ShrinkWrap Resolver Maven API 1.1.0-alpha-3 | |||||||||
| 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 with no scope defined, that is their scope is an empty string. |
|
ScopeFilter(String... scopes)
Creates a filter which accepts all artifacts that their scope is one of the specified. |
|
| Method Summary | |
|---|---|
boolean |
accept(MavenDependency dependency)
|
MavenResolutionFilter |
configure(Collection<MavenDependency> dependencies)
Passed the current MavenDependencyResolver configuration to the filter to allow it do some advanced filtering |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScopeFilter()
public ScopeFilter(String... scopes)
scopes - The enumeration of allowed scopes| Method Detail |
|---|
public MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
MavenResolutionFilterMavenDependencyResolver configuration to the filter to allow it do some advanced filtering
configure in interface MavenResolutionFilterdependencies - The dependencies to be set to the filter
public boolean accept(MavenDependency dependency)
accept in interface DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>accept in interface MavenResolutionFilter
|
ShrinkWrap Resolver Maven API 1.1.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||