Class DefaultArtifactHandler

java.lang.Object
org.apache.maven.artifact.handler.DefaultArtifactHandler
All Implemented Interfaces:
ArtifactHandler

public class DefaultArtifactHandler extends Object implements ArtifactHandler
Author:
Brett Porter, Jason van Zyl
  • Constructor Details

    • DefaultArtifactHandler

      @Deprecated public DefaultArtifactHandler()
      Deprecated.
      This ctor is present only for Plexus XML defined component compatibility, do not use it.
      Default ctor for Plexus compatibility, as many plugins have artifact handlers declared in legacy Plexus XML. Do not use directly!
    • DefaultArtifactHandler

      public DefaultArtifactHandler(String type)
    • DefaultArtifactHandler

      public DefaultArtifactHandler(String type, String extension, String classifier, String directory, String packaging, boolean includesDependencies, String language, boolean addedToClasspath)
  • Method Details

    • getType

      public String getType()
    • getExtension

      public String getExtension()
      Description copied from interface: ArtifactHandler
      Get the file extension associated to the file represented by the dependency type.
      Specified by:
      getExtension in interface ArtifactHandler
      Returns:
      the file extension
    • setExtension

      public void setExtension(String extension)
    • getClassifier

      public String getClassifier()
      Description copied from interface: ArtifactHandler
      Get the classifier associated to the dependency type.
      Specified by:
      getClassifier in interface ArtifactHandler
      Returns:
      the classifier
    • setClassifier

      public void setClassifier(String classifier)
    • getDirectory

      public String getDirectory()
      Specified by:
      getDirectory in interface ArtifactHandler
    • setDirectory

      public void setDirectory(String directory)
    • getPackaging

      public String getPackaging()
      Specified by:
      getPackaging in interface ArtifactHandler
    • setPackaging

      public void setPackaging(String packaging)
    • isIncludesDependencies

      public boolean isIncludesDependencies()
      Specified by:
      isIncludesDependencies in interface ArtifactHandler
    • setIncludesDependencies

      public void setIncludesDependencies(boolean includesDependencies)
    • getLanguage

      public String getLanguage()
      Specified by:
      getLanguage in interface ArtifactHandler
    • setLanguage

      public void setLanguage(String language)
    • isAddedToClasspath

      public boolean isAddedToClasspath()
      Specified by:
      isAddedToClasspath in interface ArtifactHandler
    • setAddedToClasspath

      public void setAddedToClasspath(boolean addedToClasspath)