public interface VersionFilter
Note: Implementations must be stateless.
Warning: This hook is called from a hot spot and therefore implementations should pay attention to
performance. Among others, implementations should provide a semantic equals()
method.
Modifier and Type | Interface and Description |
---|---|
static interface |
VersionFilter.VersionFilterContext
A context used during version filtering to hold relevant data.
|
Modifier and Type | Method and Description |
---|---|
VersionFilter |
deriveChildFilter(DependencyCollectionContext context)
Derives a version filter for the specified collection context.
|
void |
filterVersions(VersionFilter.VersionFilterContext context)
Filters the available versions for a given dependency.
|
void filterVersions(VersionFilter.VersionFilterContext context) throws RepositoryException
context.iterator()
to inspect the available versions and use
Iterator.remove()
to delete unacceptable versions. If no versions remain after all filtering
has been performed, the dependency collection process will automatically fail, i.e. implementations need not
handle this situation on their own.context
- The version filter context, must not be null
.RepositoryException
- If the filtering could not be performed.VersionFilter deriveChildFilter(DependencyCollectionContext context)
context
- The dependency collection context, must not be null
.null
if versions should not be filtered any more.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.