Package org.eclipse.aether.internal.impl
Class DefaultUpdateCheckManager
java.lang.Object
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager
- All Implemented Interfaces:
UpdateCheckManager,Service
@Singleton
@Named
public class DefaultUpdateCheckManager
extends Object
implements UpdateCheckManager, Service
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Checks whether an artifact has to be updated from a remote repository.voidcheckMetadata(RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check) Checks whether metadata has to be updated from a remote repository.voidinitService(ServiceLocator locator) Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.setTrackingFileManager(TrackingFileManager trackingFileManager) setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer) voidtouchArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Updates the timestamp for the artifact contained in the update check.voidtouchMetadata(RepositorySystemSession session, UpdateCheck<Metadata, 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
Description copied from interface:ServiceProvides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initServicein interfaceService- Parameters:
locator- The service locator, must not benull.
-
setTrackingFileManager
-
setUpdatePolicyAnalyzer
-
checkArtifact
public void checkArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Description copied from interface:UpdateCheckManagerChecks whether an artifact has to be updated from a remote repository.- Specified by:
checkArtifactin 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:UpdateCheckManagerChecks whether metadata has to be updated from a remote repository.- Specified by:
checkMetadatain 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:UpdateCheckManagerUpdates the timestamp for the artifact contained in the update check.- Specified by:
touchArtifactin 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:UpdateCheckManagerUpdates the timestamp for the metadata contained in the update check.- Specified by:
touchMetadatain interfaceUpdateCheckManager- Parameters:
session- The repository system session during which the request is made, must not benull.check- The update check request, must not benull.
-