org.apache.maven.artifact.factory
Class DefaultArtifactFactory

java.lang.Object
  extended by org.apache.maven.artifact.factory.DefaultArtifactFactory
All Implemented Interfaces:
ArtifactFactory
Direct Known Subclasses:
ProjectArtifactFactory

public class DefaultArtifactFactory
extends Object
implements ArtifactFactory


Field Summary
 
Fields inherited from interface org.apache.maven.artifact.factory.ArtifactFactory
ROLE
 
Constructor Summary
DefaultArtifactFactory()
           
 
Method Summary
 Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type)
           
 Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier)
           
 Artifact createBuildArtifact(String groupId, String artifactId, String version, String packaging)
           
 Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope)
           
 Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, boolean optional)
           
 Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope)
           
 Artifact createDependencyArtifact(String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope, String inheritedScope, boolean optional)
           
 Artifact createExtensionArtifact(String groupId, String artifactId, VersionRange versionRange)
           
 Artifact createParentArtifact(String groupId, String artifactId, String version)
           
 Artifact createPluginArtifact(String groupId, String artifactId, VersionRange versionRange)
           
 Artifact createProjectArtifact(String groupId, String artifactId, String version)
           
 Artifact createProjectArtifact(String groupId, String artifactId, String version, String scope)
           
protected  ArtifactHandlerManager getArtifactHandlerManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArtifactFactory

public DefaultArtifactFactory()
Method Detail

createArtifact

public Artifact createArtifact(String groupId,
                               String artifactId,
                               String version,
                               String scope,
                               String type)
Specified by:
createArtifact in interface ArtifactFactory

createArtifactWithClassifier

public Artifact createArtifactWithClassifier(String groupId,
                                             String artifactId,
                                             String version,
                                             String type,
                                             String classifier)
Specified by:
createArtifactWithClassifier in interface ArtifactFactory

createDependencyArtifact

public Artifact createDependencyArtifact(String groupId,
                                         String artifactId,
                                         VersionRange versionRange,
                                         String type,
                                         String classifier,
                                         String scope)
Specified by:
createDependencyArtifact in interface ArtifactFactory

createDependencyArtifact

public Artifact createDependencyArtifact(String groupId,
                                         String artifactId,
                                         VersionRange versionRange,
                                         String type,
                                         String classifier,
                                         String scope,
                                         boolean optional)
Specified by:
createDependencyArtifact in interface ArtifactFactory

createDependencyArtifact

public Artifact createDependencyArtifact(String groupId,
                                         String artifactId,
                                         VersionRange versionRange,
                                         String type,
                                         String classifier,
                                         String scope,
                                         String inheritedScope)
Specified by:
createDependencyArtifact in interface ArtifactFactory

createDependencyArtifact

public Artifact createDependencyArtifact(String groupId,
                                         String artifactId,
                                         VersionRange versionRange,
                                         String type,
                                         String classifier,
                                         String scope,
                                         String inheritedScope,
                                         boolean optional)
Specified by:
createDependencyArtifact in interface ArtifactFactory

createBuildArtifact

public Artifact createBuildArtifact(String groupId,
                                    String artifactId,
                                    String version,
                                    String packaging)
Specified by:
createBuildArtifact in interface ArtifactFactory

createProjectArtifact

public Artifact createProjectArtifact(String groupId,
                                      String artifactId,
                                      String version)
Specified by:
createProjectArtifact in interface ArtifactFactory

createParentArtifact

public Artifact createParentArtifact(String groupId,
                                     String artifactId,
                                     String version)
Specified by:
createParentArtifact in interface ArtifactFactory

createPluginArtifact

public Artifact createPluginArtifact(String groupId,
                                     String artifactId,
                                     VersionRange versionRange)
Specified by:
createPluginArtifact in interface ArtifactFactory

createProjectArtifact

public Artifact createProjectArtifact(String groupId,
                                      String artifactId,
                                      String version,
                                      String scope)
Specified by:
createProjectArtifact in interface ArtifactFactory

createExtensionArtifact

public Artifact createExtensionArtifact(String groupId,
                                        String artifactId,
                                        VersionRange versionRange)
Specified by:
createExtensionArtifact in interface ArtifactFactory

getArtifactHandlerManager

protected ArtifactHandlerManager getArtifactHandlerManager()


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