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 Constructor Description DefaultArtifactHandler()
DefaultArtifactHandler(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassifier()
Get the classifier associated to the dependency type.String
getDirectory()
String
getExtension()
Get the file extension associated to the file represented by the dependency type.String
getLanguage()
String
getPackaging()
String
getType()
boolean
isAddedToClasspath()
boolean
isIncludesDependencies()
void
setAddedToClasspath(boolean addedToClasspath)
void
setExtension(String extension)
void
setIncludesDependencies(boolean includesDependencies)
void
setLanguage(String language)
-
-
-
Constructor Detail
-
DefaultArtifactHandler
public DefaultArtifactHandler()
-
DefaultArtifactHandler
public DefaultArtifactHandler(String type)
-
-
Method Detail
-
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 interfaceArtifactHandler
- Returns:
- the file extension
-
setExtension
public void setExtension(String extension)
-
getType
public String getType()
-
getClassifier
public String getClassifier()
Description copied from interface:ArtifactHandler
Get the classifier associated to the dependency type.- Specified by:
getClassifier
in interfaceArtifactHandler
- Returns:
- the classifier
-
getDirectory
public String getDirectory()
- Specified by:
getDirectory
in interfaceArtifactHandler
-
getPackaging
public String getPackaging()
- Specified by:
getPackaging
in interfaceArtifactHandler
-
isIncludesDependencies
public boolean isIncludesDependencies()
- Specified by:
isIncludesDependencies
in interfaceArtifactHandler
-
setIncludesDependencies
public void setIncludesDependencies(boolean includesDependencies)
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interfaceArtifactHandler
-
setLanguage
public void setLanguage(String language)
-
isAddedToClasspath
public boolean isAddedToClasspath()
- Specified by:
isAddedToClasspath
in interfaceArtifactHandler
-
setAddedToClasspath
public void setAddedToClasspath(boolean addedToClasspath)
-
-