org.apache.maven.repository.legacy
Class DefaultUpdateCheckManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.repository.legacy.DefaultUpdateCheckManager
All Implemented Interfaces:
UpdateCheckManager, org.codehaus.plexus.logging.LogEnabled

@Component(role=UpdateCheckManager.class)
public class DefaultUpdateCheckManager
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements UpdateCheckManager


Field Summary
static String LAST_UPDATE_TAG
           
 
Constructor Summary
DefaultUpdateCheckManager()
           
DefaultUpdateCheckManager(org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_UPDATE_TAG

public static final String LAST_UPDATE_TAG
See Also:
Constant Field Values
Constructor Detail

DefaultUpdateCheckManager

public DefaultUpdateCheckManager()

DefaultUpdateCheckManager

public DefaultUpdateCheckManager(org.codehaus.plexus.logging.Logger logger)
Method Detail

isUpdateRequired

public boolean isUpdateRequired(Artifact artifact,
                                ArtifactRepository repository)
Specified by:
isUpdateRequired in interface UpdateCheckManager

isUpdateRequired

public boolean isUpdateRequired(RepositoryMetadata metadata,
                                ArtifactRepository repository,
                                File file)
Specified by:
isUpdateRequired in interface UpdateCheckManager

getError

public String getError(Artifact artifact,
                       ArtifactRepository repository)
Specified by:
getError in interface UpdateCheckManager

touch

public void touch(Artifact artifact,
                  ArtifactRepository repository,
                  String error)
Specified by:
touch in interface UpdateCheckManager

touch

public void touch(RepositoryMetadata metadata,
                  ArtifactRepository repository,
                  File file)
Specified by:
touch in interface UpdateCheckManager


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.