org.apache.maven.artifact.repository
Class DefaultArtifactRepositoryFactory

java.lang.Object
  extended by org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory
All Implemented Interfaces:
ArtifactRepositoryFactory

@Component(role=ArtifactRepositoryFactory.class)
public class DefaultArtifactRepositoryFactory
extends Object
implements ArtifactRepositoryFactory

Author:
jdcasey

Field Summary
 
Fields inherited from interface org.apache.maven.artifact.repository.ArtifactRepositoryFactory
DEFAULT_LAYOUT_ID, LOCAL_REPOSITORY_ID, ROLE
 
Constructor Summary
DefaultArtifactRepositoryFactory()
           
 
Method Summary
 ArtifactRepository createArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
           
 ArtifactRepository createArtifactRepository(String id, String url, String layoutId, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
           
 ArtifactRepository createDeploymentArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, boolean uniqueVersion)
           
 ArtifactRepository createDeploymentArtifactRepository(String id, String url, String layoutId, boolean uniqueVersion)
           
 ArtifactRepositoryLayout getLayout(String layoutId)
           
 void setGlobalChecksumPolicy(String checksumPolicy)
           
 void setGlobalUpdatePolicy(String updatePolicy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArtifactRepositoryFactory

public DefaultArtifactRepositoryFactory()
Method Detail

getLayout

public ArtifactRepositoryLayout getLayout(String layoutId)
                                   throws UnknownRepositoryLayoutException
Specified by:
getLayout in interface ArtifactRepositoryFactory
Throws:
UnknownRepositoryLayoutException

createDeploymentArtifactRepository

public ArtifactRepository createDeploymentArtifactRepository(String id,
                                                             String url,
                                                             String layoutId,
                                                             boolean uniqueVersion)
                                                      throws UnknownRepositoryLayoutException
Specified by:
createDeploymentArtifactRepository in interface ArtifactRepositoryFactory
Throws:
UnknownRepositoryLayoutException

createDeploymentArtifactRepository

public ArtifactRepository createDeploymentArtifactRepository(String id,
                                                             String url,
                                                             ArtifactRepositoryLayout repositoryLayout,
                                                             boolean uniqueVersion)
Specified by:
createDeploymentArtifactRepository in interface ArtifactRepositoryFactory

createArtifactRepository

public ArtifactRepository createArtifactRepository(String id,
                                                   String url,
                                                   String layoutId,
                                                   ArtifactRepositoryPolicy snapshots,
                                                   ArtifactRepositoryPolicy releases)
                                            throws UnknownRepositoryLayoutException
Specified by:
createArtifactRepository in interface ArtifactRepositoryFactory
Throws:
UnknownRepositoryLayoutException

createArtifactRepository

public ArtifactRepository createArtifactRepository(String id,
                                                   String url,
                                                   ArtifactRepositoryLayout repositoryLayout,
                                                   ArtifactRepositoryPolicy snapshots,
                                                   ArtifactRepositoryPolicy releases)
Specified by:
createArtifactRepository in interface ArtifactRepositoryFactory

setGlobalUpdatePolicy

public void setGlobalUpdatePolicy(String updatePolicy)
Specified by:
setGlobalUpdatePolicy in interface ArtifactRepositoryFactory

setGlobalChecksumPolicy

public void setGlobalChecksumPolicy(String checksumPolicy)
Specified by:
setGlobalChecksumPolicy in interface ArtifactRepositoryFactory


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