Fabric3 Webapp Plugin

org.fabric3.war
Class Dependency

java.lang.Object
  extended by org.fabric3.war.Dependency

public class Dependency
extends Object

Represents a configured Fabric3 dependency for boot and extension libraries.

Version:
$Rev: 2449 $ $Date: 2008-01-10 12:51:34 -0800 (Thu, 10 Jan 2008) $

Constructor Summary
Dependency()
          Default constructor.
Dependency(String groupId, String artifactId, String version)
          Initializes the field.
 
Method Summary
 org.apache.maven.artifact.Artifact getArtifact(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
          Gets the artifact using the specified artifact factory.
 String getArtifactId()
          Returns the artifact id.
 String getGroupId()
          Returns the group id.
 String getVersion()
          Returns the version of dependency.
 boolean match(org.apache.maven.artifact.Artifact artifact)
          Checks whether the specified artifact has the same artifact id.
 void setVersion(String version)
          Sets the version for dependency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency()
Default constructor.


Dependency

public Dependency(String groupId,
                  String artifactId,
                  String version)
Initializes the field.

Parameters:
groupId - Group id.
artifactId - Artifact id.
version - Artifact version.
Method Detail

getArtifact

public org.apache.maven.artifact.Artifact getArtifact(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
Gets the artifact using the specified artifact factory.

Parameters:
artifactFactory - Artifact factory to use.
Returns:
Artifact identified by the dependency.

match

public boolean match(org.apache.maven.artifact.Artifact artifact)
Checks whether the specified artifact has the same artifact id.

Parameters:
artifact - Artifact to be matched.
Returns:
True if the specified artifact has the same id.

getVersion

public String getVersion()
Returns the version of dependency.

Returns:
the version of dependency

setVersion

public void setVersion(String version)
Sets the version for dependency.

Parameters:
version - the version for dependency

getArtifactId

public String getArtifactId()
Returns the artifact id.

Returns:
the artifact id

getGroupId

public String getGroupId()
Returns the group id.

Returns:
the group id

Fabric3 Webapp Plugin

Copyright © 2007-2008 Fabric3 project contributors. All Rights Reserved.
Licensed under the terms of the Apache License 2.0.