|
ShrinkWrap Resolver Aggregator 1.1.0-alpha-2 | |||||||||
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)
Accepts element of type E |
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 scopesMethod Detail |
---|
public MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
MavenResolutionFilter
MavenDependencyResolver
configuration to the filter to allow it do some advanced filtering
configure
in interface MavenResolutionFilter
dependencies
- The dependencies to be set to the filter
public boolean accept(MavenDependency dependency)
DependencyResolutionFilter
accept
in interface DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>
accept
in interface MavenResolutionFilter
dependency
- the element
true
if accepted by the filter, false
otherwise
|
ShrinkWrap Resolver Aggregator 1.1.0-alpha-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |