Class DefaultArtifactHandlerStub
java.lang.Object
org.apache.maven.plugin.testing.stubs.DefaultArtifactHandlerStub
- All Implemented Interfaces:
org.apache.maven.artifact.handler.ArtifactHandler
public class DefaultArtifactHandlerStub
extends Object
implements org.apache.maven.artifact.handler.ArtifactHandler
Minimal artifact handler used by the stub factory to create unpackable archives.
- Author:
- Brian Fox
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.handler.ArtifactHandler
ROLE
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetType()
boolean
boolean
void
setAddedToClasspath
(boolean theAddedToClasspath) void
setClassifier
(String theClassifier) void
setDirectory
(String theDirectory) void
setExtension
(String theExtension) void
setIncludesDependencies
(boolean theIncludesDependencies) void
setLanguage
(String theLanguage) void
setPackaging
(String thePackaging) void
-
Constructor Details
-
DefaultArtifactHandlerStub
- Parameters:
t
- the artifact handler typec
- the artifact handler classifier
-
DefaultArtifactHandlerStub
- Parameters:
type
- the artifact handler type
-
-
Method Details
-
getExtension
- Specified by:
getExtension
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
getType
- Returns:
- the artifact handler type
-
getClassifier
- Specified by:
getClassifier
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
getDirectory
- Specified by:
getDirectory
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
getPackaging
- Specified by:
getPackaging
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
isIncludesDependencies
public boolean isIncludesDependencies()- Specified by:
isIncludesDependencies
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
getLanguage
- Specified by:
getLanguage
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
isAddedToClasspath
public boolean isAddedToClasspath()- Specified by:
isAddedToClasspath
in interfaceorg.apache.maven.artifact.handler.ArtifactHandler
-
setAddedToClasspath
public void setAddedToClasspath(boolean theAddedToClasspath) - Parameters:
theAddedToClasspath
- The addedToClasspath to set.
-
setClassifier
- Parameters:
theClassifier
- The classifier to set.
-
setDirectory
- Parameters:
theDirectory
- The directory to set.
-
setExtension
- Parameters:
theExtension
- The extension to set.
-
setIncludesDependencies
public void setIncludesDependencies(boolean theIncludesDependencies) - Parameters:
theIncludesDependencies
- The includesDependencies to set.
-
setLanguage
- Parameters:
theLanguage
- The language to set.
-
setPackaging
- Parameters:
thePackaging
- The packaging to set.
-
setType
- Parameters:
theType
- The type to set.
-