Package org.eclipse.aether.internal.impl
Class DefaultUpdateCheckManager
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultUpdateCheckManager
-
- All Implemented Interfaces:
UpdateCheckManager
,Service
@Named public class DefaultUpdateCheckManager extends Object implements UpdateCheckManager, Service
-
-
Constructor Summary
Constructors Constructor Description DefaultUpdateCheckManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkArtifact(RepositorySystemSession session, UpdateCheck<Artifact,ArtifactTransferException> check)
Checks whether an artifact has to be updated from a remote repository.void
checkMetadata(RepositorySystemSession session, UpdateCheck<Metadata,MetadataTransferException> check)
Checks whether metadata has to be updated from a remote repository.void
initService(ServiceLocator locator)
DefaultUpdateCheckManager
setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer)
void
touchArtifact(RepositorySystemSession session, UpdateCheck<Artifact,ArtifactTransferException> check)
Updates the timestamp for the artifact contained in the update check.void
touchMetadata(RepositorySystemSession session, UpdateCheck<Metadata,MetadataTransferException> check)
Updates the timestamp for the metadata contained in the update check.
-
-
-
Constructor Detail
-
DefaultUpdateCheckManager
public DefaultUpdateCheckManager()
-
-
Method Detail
-
initService
public void initService(ServiceLocator locator)
- Specified by:
initService
in interfaceService
-
setUpdatePolicyAnalyzer
public DefaultUpdateCheckManager setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer)
-
checkArtifact
public void checkArtifact(RepositorySystemSession session, UpdateCheck<Artifact,ArtifactTransferException> check)
Description copied from interface:UpdateCheckManager
Checks whether an artifact has to be updated from a remote repository.- Specified by:
checkArtifact
in interfaceUpdateCheckManager
- Parameters:
session
- The repository system session during which the request is made, must not benull
.check
- The update check request, must not benull
.
-
checkMetadata
public void checkMetadata(RepositorySystemSession session, UpdateCheck<Metadata,MetadataTransferException> check)
Description copied from interface:UpdateCheckManager
Checks whether metadata has to be updated from a remote repository.- Specified by:
checkMetadata
in interfaceUpdateCheckManager
- Parameters:
session
- The repository system session during which the request is made, must not benull
.check
- The update check request, must not benull
.
-
touchArtifact
public void touchArtifact(RepositorySystemSession session, UpdateCheck<Artifact,ArtifactTransferException> check)
Description copied from interface:UpdateCheckManager
Updates the timestamp for the artifact contained in the update check.- Specified by:
touchArtifact
in interfaceUpdateCheckManager
- Parameters:
session
- The repository system session during which the request is made, must not benull
.check
- The update check request, must not benull
.
-
touchMetadata
public void touchMetadata(RepositorySystemSession session, UpdateCheck<Metadata,MetadataTransferException> check)
Description copied from interface:UpdateCheckManager
Updates the timestamp for the metadata contained in the update check.- Specified by:
touchMetadata
in interfaceUpdateCheckManager
- Parameters:
session
- The repository system session during which the request is made, must not benull
.check
- The update check request, must not benull
.
-
-