@Component(role=UpdateCheckManager.class) public class DefaultUpdateCheckManager extends org.codehaus.plexus.logging.AbstractLogEnabled implements UpdateCheckManager
Modifier and Type | Field and Description |
---|---|
static String |
LAST_UPDATE_TAG |
Constructor and Description |
---|
DefaultUpdateCheckManager() |
DefaultUpdateCheckManager(org.codehaus.plexus.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
String |
getError(Artifact artifact,
ArtifactRepository repository) |
boolean |
isUpdateRequired(Artifact artifact,
ArtifactRepository repository) |
boolean |
isUpdateRequired(RepositoryMetadata metadata,
ArtifactRepository repository,
File file) |
void |
touch(Artifact artifact,
ArtifactRepository repository,
String error) |
void |
touch(RepositoryMetadata metadata,
ArtifactRepository repository,
File file) |
public static final String LAST_UPDATE_TAG
public DefaultUpdateCheckManager()
public DefaultUpdateCheckManager(org.codehaus.plexus.logging.Logger logger)
public boolean isUpdateRequired(Artifact artifact, ArtifactRepository repository)
isUpdateRequired
in interface UpdateCheckManager
public boolean isUpdateRequired(RepositoryMetadata metadata, ArtifactRepository repository, File file)
isUpdateRequired
in interface UpdateCheckManager
public String getError(Artifact artifact, ArtifactRepository repository)
getError
in interface UpdateCheckManager
public void touch(Artifact artifact, ArtifactRepository repository, String error)
touch
in interface UpdateCheckManager
public void touch(RepositoryMetadata metadata, ArtifactRepository repository, File file)
touch
in interface UpdateCheckManager
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.