Package org.eclipse.aether.internal.impl
Class DefaultUpdateCheckManager
java.lang.Object
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager
- All Implemented Interfaces:
UpdateCheckManager
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultUpdateCheckManager
extends Object
implements UpdateCheckManager, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultUpdateCheckManager
(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkArtifact
(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact, org.eclipse.aether.transfer.ArtifactTransferException> check) Checks whether an artifact has to be updated from a remote repository.void
checkMetadata
(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata, org.eclipse.aether.transfer.MetadataTransferException> check) Checks whether metadata has to be updated from a remote repository.void
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) setTrackingFileManager
(TrackingFileManager trackingFileManager) setUpdatePolicyAnalyzer
(UpdatePolicyAnalyzer updatePolicyAnalyzer) void
touchArtifact
(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact, org.eclipse.aether.transfer.ArtifactTransferException> check) Updates the timestamp for the artifact contained in the update check.void
touchMetadata
(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata, org.eclipse.aether.transfer.MetadataTransferException> check) Updates the timestamp for the metadata contained in the update check.
-
Constructor Details
-
DefaultUpdateCheckManager
Deprecated. -
DefaultUpdateCheckManager
@Inject public DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setTrackingFileManager
-
setUpdatePolicyAnalyzer
-
checkArtifact
public void checkArtifact(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact, org.eclipse.aether.transfer.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(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata, org.eclipse.aether.transfer.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(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact, org.eclipse.aether.transfer.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(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata, org.eclipse.aether.transfer.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
.
-