@Component(role=UpdateCheckManager.class) public class DefaultUpdateCheckManager extends AbstractLogEnabled implements UpdateCheckManager
Modifier and Type | Field and Description |
---|---|
static String |
LAST_UPDATE_TAG |
Constructor and Description |
---|
DefaultUpdateCheckManager() |
DefaultUpdateCheckManager(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) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String LAST_UPDATE_TAG
public DefaultUpdateCheckManager()
public DefaultUpdateCheckManager(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–2014 The Apache Software Foundation. All rights reserved.