org.apache.maven.repository
Class DefaultArtifactFactory

java.lang.Object
  extended byorg.apache.maven.repository.DefaultArtifactFactory

public class DefaultArtifactFactory
extends java.lang.Object

Simple factory for creating Artifact implementations based on a dependency type.

Version:
$Id: DefaultArtifactFactory.java 517014 2007-03-11 21:15:50Z ltheussl $
Author:
Jason van Zyl
To Do:
The factor needs to take a properties file describing the acceptable types of artifacts. We can have a default set and also allow users to customize the list for their own purposes.

Constructor Summary
DefaultArtifactFactory()
           
 
Method Summary
static Artifact createArtifact(org.apache.maven.project.Dependency dependency)
          Return an appropriate Artifact implementation based on the dependency type.
 
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 static Artifact createArtifact(org.apache.maven.project.Dependency dependency)
Return an appropriate Artifact implementation based on the dependency type.

Parameters:
dependency - The base dependency.
Returns:
The appropriate artifact based on the dependency type.
To Do:
not the intended usage of test type


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.