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 java.lang.Object implements UpdateCheckManager, org.eclipse.aether.spi.locator.Service
-
-
Constructor Summary
Constructors Constructor Description DefaultUpdateCheckManager()Deprecated.DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckArtifact(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.voidcheckMetadata(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.voidinitService(org.eclipse.aether.spi.locator.ServiceLocator locator)DefaultUpdateCheckManagersetTrackingFileManager(TrackingFileManager trackingFileManager)DefaultUpdateCheckManagersetUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer)voidtouchArtifact(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.voidtouchMetadata(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 Detail
-
DefaultUpdateCheckManager
@Deprecated public DefaultUpdateCheckManager()
Deprecated.
-
DefaultUpdateCheckManager
@Inject public DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer)
-
-
Method Detail
-
initService
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
- Specified by:
initServicein interfaceorg.eclipse.aether.spi.locator.Service
-
setTrackingFileManager
public DefaultUpdateCheckManager setTrackingFileManager(TrackingFileManager trackingFileManager)
-
setUpdatePolicyAnalyzer
public DefaultUpdateCheckManager setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer)
-
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: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(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata,org.eclipse.aether.transfer.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(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact,org.eclipse.aether.transfer.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(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata,org.eclipse.aether.transfer.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.
-
-