Class DefaultArtifactHandler
java.lang.Object
org.apache.maven.artifact.handler.DefaultArtifactHandler
- All Implemented Interfaces:
ArtifactHandler
@Component(role=ArtifactHandler.class)
public class DefaultArtifactHandler
extends Object
implements ArtifactHandler
- Author:
- Brett Porter, Jason van Zyl
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.handler.ArtifactHandler
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the classifier associated to the dependency type.Get the file extension associated to the file represented by the dependency type.getType()booleanbooleanvoidsetAddedToClasspath(boolean addedToClasspath) voidsetExtension(String extension) voidsetIncludesDependencies(boolean includesDependencies) voidsetLanguage(String language)
-
Constructor Details
-
DefaultArtifactHandler
public DefaultArtifactHandler() -
DefaultArtifactHandler
-
-
Method Details
-
getExtension
Description copied from interface:ArtifactHandlerGet the file extension associated to the file represented by the dependency type.- Specified by:
getExtensionin interfaceArtifactHandler- Returns:
- the file extension
-
setExtension
-
getType
-
getClassifier
Description copied from interface:ArtifactHandlerGet the classifier associated to the dependency type.- Specified by:
getClassifierin interfaceArtifactHandler- Returns:
- the classifier
-
getDirectory
- Specified by:
getDirectoryin interfaceArtifactHandler
-
getPackaging
- Specified by:
getPackagingin interfaceArtifactHandler
-
isIncludesDependencies
public boolean isIncludesDependencies()- Specified by:
isIncludesDependenciesin interfaceArtifactHandler
-
setIncludesDependencies
public void setIncludesDependencies(boolean includesDependencies) -
getLanguage
- Specified by:
getLanguagein interfaceArtifactHandler
-
setLanguage
-
isAddedToClasspath
public boolean isAddedToClasspath()- Specified by:
isAddedToClasspathin interfaceArtifactHandler
-
setAddedToClasspath
public void setAddedToClasspath(boolean addedToClasspath)
-