Interface ArtifactHandler
-
- All Known Implementing Classes:
DefaultArtifactHandler
,PluginArtifact.PluginArtifactHandler
,ProjectArtifact.PomArtifactHandler
public interface ArtifactHandler
An artifact handler defines for a dependency type, defined as Plexus role:- extension and classifier, to be able to download the file,
- information on how to use the artifact: whether to add it to the classpath, or to take into account its dependencies.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getClassifier()
Get the classifier associated to the dependency type.java.lang.String
getDirectory()
java.lang.String
getExtension()
Get the file extension associated to the file represented by the dependency type.java.lang.String
getLanguage()
java.lang.String
getPackaging()
boolean
isAddedToClasspath()
boolean
isIncludesDependencies()
-
-
-
Method Detail
-
getExtension
java.lang.String getExtension()
Get the file extension associated to the file represented by the dependency type.- Returns:
- the file extension
-
getDirectory
java.lang.String getDirectory()
-
getClassifier
java.lang.String getClassifier()
Get the classifier associated to the dependency type.- Returns:
- the classifier
-
getPackaging
java.lang.String getPackaging()
-
isIncludesDependencies
boolean isIncludesDependencies()
-
getLanguage
java.lang.String getLanguage()
-
isAddedToClasspath
boolean isAddedToClasspath()
-
-