Class StaticDependencySelector
- java.lang.Object
-
- org.eclipse.aether.util.graph.selector.StaticDependencySelector
-
- All Implemented Interfaces:
DependencySelector
public final class StaticDependencySelector extends Object implements DependencySelector
A dependency selector that always includes or excludes dependencies.
-
-
Constructor Summary
Constructors Constructor Description StaticDependencySelector(boolean select)
Creates a new selector with the specified selection behavior.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencySelector
deriveChildSelector(DependencyCollectionContext context)
boolean
equals(Object obj)
int
hashCode()
boolean
selectDependency(Dependency dependency)
-
-
-
Constructor Detail
-
StaticDependencySelector
public StaticDependencySelector(boolean select)
Creates a new selector with the specified selection behavior.- Parameters:
select
-true
to select all dependencies,false
to exclude all dependencies.
-
-
Method Detail
-
selectDependency
public boolean selectDependency(Dependency dependency)
- Specified by:
selectDependency
in interfaceDependencySelector
-
deriveChildSelector
public DependencySelector deriveChildSelector(DependencyCollectionContext context)
- Specified by:
deriveChildSelector
in interfaceDependencySelector
-
-