org.apache.maven.artifact.repository.metadata
Class DefaultRepositoryMetadataManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager
All Implemented Interfaces:
RepositoryMetadataManager, LogEnabled

@Component(role=org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager.class)
public class DefaultRepositoryMetadataManager
extends AbstractLogEnabled
implements RepositoryMetadataManager

Author:
Jason van Zyl

Constructor Summary
DefaultRepositoryMetadataManager()
           
 
Method Summary
 void deploy(ArtifactMetadata metadata, ArtifactRepository localRepository, ArtifactRepository deploymentRepository)
           
 void install(ArtifactMetadata metadata, ArtifactRepository localRepository)
           
protected  Metadata readMetadata(File mappingFile)
           
 void resolve(RepositoryMetadata metadata, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository)
           
 void resolve(RepositoryMetadata metadata, RepositoryRequest request)
           
 void resolveAlways(RepositoryMetadata metadata, ArtifactRepository localRepository, ArtifactRepository remoteRepository)
           
 
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
 

Constructor Detail

DefaultRepositoryMetadataManager

public DefaultRepositoryMetadataManager()
Method Detail

resolve

public void resolve(RepositoryMetadata metadata,
                    List<ArtifactRepository> remoteRepositories,
                    ArtifactRepository localRepository)
             throws RepositoryMetadataResolutionException
Specified by:
resolve in interface RepositoryMetadataManager
Throws:
RepositoryMetadataResolutionException

resolve

public void resolve(RepositoryMetadata metadata,
                    RepositoryRequest request)
             throws RepositoryMetadataResolutionException
Specified by:
resolve in interface RepositoryMetadataManager
Throws:
RepositoryMetadataResolutionException

readMetadata

protected Metadata readMetadata(File mappingFile)
                         throws RepositoryMetadataReadException
Throws:
RepositoryMetadataReadException

resolveAlways

public void resolveAlways(RepositoryMetadata metadata,
                          ArtifactRepository localRepository,
                          ArtifactRepository remoteRepository)
                   throws RepositoryMetadataResolutionException
Specified by:
resolveAlways in interface RepositoryMetadataManager
Throws:
RepositoryMetadataResolutionException

deploy

public void deploy(ArtifactMetadata metadata,
                   ArtifactRepository localRepository,
                   ArtifactRepository deploymentRepository)
            throws RepositoryMetadataDeploymentException
Specified by:
deploy in interface RepositoryMetadataManager
Throws:
RepositoryMetadataDeploymentException

install

public void install(ArtifactMetadata metadata,
                    ArtifactRepository localRepository)
             throws RepositoryMetadataInstallationException
Specified by:
install in interface RepositoryMetadataManager
Throws:
RepositoryMetadataInstallationException


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