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 122095 2004-03-01 22:36:39Z evenisse $
Author:
Jason van Zyl

Constructor Summary
DefaultArtifactFactory()
           
 
Method Summary
static Artifact createArtifact(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(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.


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