@Named public class DefaultUpdateCheckManager extends Object implements UpdateCheckManager, Service
| Constructor and Description |
|---|
DefaultUpdateCheckManager() |
| Modifier and Type | Method and 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)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
DefaultUpdateCheckManager |
setLoggerFactory(LoggerFactory loggerFactory) |
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.
|
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public DefaultUpdateCheckManager setLoggerFactory(LoggerFactory loggerFactory)
public DefaultUpdateCheckManager setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer)
public void checkArtifact(RepositorySystemSession session, UpdateCheck<Artifact,ArtifactTransferException> check)
UpdateCheckManagercheckArtifact in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.public void checkMetadata(RepositorySystemSession session, UpdateCheck<Metadata,MetadataTransferException> check)
UpdateCheckManagercheckMetadata in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.public void touchArtifact(RepositorySystemSession session, UpdateCheck<Artifact,ArtifactTransferException> check)
UpdateCheckManagertouchArtifact in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.public void touchMetadata(RepositorySystemSession session, UpdateCheck<Metadata,MetadataTransferException> check)
UpdateCheckManagertouchMetadata in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.