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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private String
private String
private String
private boolean
private String
private String
private String
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()
boolean
boolean
void
setAddedToClasspath
(boolean addedToClasspath) void
setExtension
(String extension) void
setIncludesDependencies
(boolean includesDependencies) void
setLanguage
(String language)
-
Field Details
-
extension
-
type
-
classifier
-
directory
-
packaging
-
includesDependencies
private boolean includesDependencies -
language
-
addedToClasspath
private boolean addedToClasspath
-
-
Constructor Details
-
DefaultArtifactHandler
public DefaultArtifactHandler() -
DefaultArtifactHandler
-
-
Method Details
-
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
-
getType
-
getClassifier
Description copied from interface:ArtifactHandler
Get the classifier associated to the dependency type.- Specified by:
getClassifier
in interfaceArtifactHandler
- Returns:
- the classifier
-
getDirectory
- Specified by:
getDirectory
in interfaceArtifactHandler
-
getPackaging
- Specified by:
getPackaging
in interfaceArtifactHandler
-
isIncludesDependencies
public boolean isIncludesDependencies()- Specified by:
isIncludesDependencies
in interfaceArtifactHandler
-
setIncludesDependencies
public void setIncludesDependencies(boolean includesDependencies) -
getLanguage
- Specified by:
getLanguage
in interfaceArtifactHandler
-
setLanguage
-
isAddedToClasspath
public boolean isAddedToClasspath()- Specified by:
isAddedToClasspath
in interfaceArtifactHandler
-
setAddedToClasspath
public void setAddedToClasspath(boolean addedToClasspath)
-