Class ArtifactResolverPostProcessorSupport
- java.lang.Object
-
- org.eclipse.aether.internal.impl.resolution.ArtifactResolverPostProcessorSupport
-
- All Implemented Interfaces:
ArtifactResolverPostProcessor
- Direct Known Subclasses:
TrustedChecksumsArtifactResolverPostProcessor
public abstract class ArtifactResolverPostProcessorSupport extends java.lang.Object implements ArtifactResolverPostProcessor
Support class to implementArtifactResolverPostProcessor
.- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CONFIG_PROP_PREFIX
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArtifactResolverPostProcessorSupport(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
configPropKey(java.lang.String name)
To be used by underlying implementations to form configuration property keys properly scoped.protected abstract void
doPostProcess(RepositorySystemSession session, java.util.List<ArtifactResult> artifactResults)
protected boolean
isEnabled(RepositorySystemSession session)
Returnstrue
if session configuration marks this instance as enabled.void
postProcess(RepositorySystemSession session, java.util.List<ArtifactResult> artifactResults)
This implementation will call into underlying code only if enabled.
-
-
-
Field Detail
-
CONFIG_PROP_PREFIX
private static final java.lang.String CONFIG_PROP_PREFIX
- See Also:
- Constant Field Values
-
name
private final java.lang.String name
-
-
Method Detail
-
postProcess
public void postProcess(RepositorySystemSession session, java.util.List<ArtifactResult> artifactResults)
This implementation will call into underlying code only if enabled.- Specified by:
postProcess
in interfaceArtifactResolverPostProcessor
-
doPostProcess
protected abstract void doPostProcess(RepositorySystemSession session, java.util.List<ArtifactResult> artifactResults)
-
configPropKey
protected java.lang.String configPropKey(java.lang.String name)
To be used by underlying implementations to form configuration property keys properly scoped.
-
isEnabled
protected boolean isEnabled(RepositorySystemSession session)
Returnstrue
if session configuration marks this instance as enabled.Default value is
false
.
-
-