|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.graph.selector.ScopeDependencySelector
public class ScopeDependencySelector
A dependency selector that filters transitive dependencies based on their scope. Direct dependencies are always included regardless of their scope. Note: This filter does not assume any relationships between the scopes. In particular, the filter is not aware of scopes that logically include other scopes.
Dependency.getScope()| Constructor Summary | |
|---|---|
ScopeDependencySelector(java.util.Collection<java.lang.String> included,
java.util.Collection<java.lang.String> excluded)
Creates a new selector using the specified includes and excludes. |
|
ScopeDependencySelector(java.lang.String... excluded)
Creates a new selector using the specified excludes. |
|
| Method Summary | |
|---|---|
DependencySelector |
deriveChildSelector(DependencyCollectionContext context)
Derives a dependency selector for the specified collection context. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
selectDependency(Dependency dependency)
Applies exclusions to the specified dependency. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScopeDependencySelector(java.util.Collection<java.lang.String> included,
java.util.Collection<java.lang.String> excluded)
included - The set of scopes to include, may be null or empty to include any scope.excluded - The set of scopes to exclude, may be null or empty to exclude no scope.public ScopeDependencySelector(java.lang.String... excluded)
excluded - The set of scopes to exclude, may be null or empty to exclude no scope.| Method Detail |
|---|
public boolean selectDependency(Dependency dependency)
DependencySelector
selectDependency in interface DependencySelectordependency - The dependency to filter, must not be null.
false if the dependency should be excluded from the children of the current node, true
otherwise.public DependencySelector deriveChildSelector(DependencyCollectionContext context)
DependencySelector
deriveChildSelector in interface DependencySelectorcontext - The dependency collection context, must not be null.
null.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||