Package org.apache.maven.toolchain
Class DefaultToolchain
java.lang.Object
org.apache.maven.toolchain.DefaultToolchain
- All Implemented Interfaces:
Toolchain
,ToolchainPrivate
- Direct Known Subclasses:
JavaToolchainImpl
Default abstract toolchain implementation, to be used as base class for any toolchain implementation
to avoid rewriting usual code.
- Since:
- 2.0.9
- Author:
- mkleint
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultToolchain
(ToolchainModel model, String type, org.codehaus.plexus.logging.Logger logger) protected
DefaultToolchain
(ToolchainModel model, org.codehaus.plexus.logging.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addProvideToken
(String type, RequirementMatcher matcher) boolean
protected org.codehaus.plexus.logging.Logger
getLog()
final ToolchainModel
getModel()
final String
getType()
get the type of toolchain.int
hashCode()
boolean
matchesRequirements
(Map<String, String> requirements) Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.toString()
-
Field Details
-
KEY_TYPE
- See Also:
-
-
Constructor Details
-
DefaultToolchain
- Parameters:
model
- the model, must not benull
logger
- the logger, must not benull
-
DefaultToolchain
protected DefaultToolchain(ToolchainModel model, String type, org.codehaus.plexus.logging.Logger logger) - Parameters:
model
- the model, must not benull
type
- the typelogger
- the logger, must not benull
-
-
Method Details
-
getType
Description copied from interface:Toolchain
get the type of toolchain. -
getModel
- Specified by:
getModel
in interfaceToolchainPrivate
- Returns:
- the original model wrapped by this interface
-
addProvideToken
-
matchesRequirements
Description copied from interface:ToolchainPrivate
Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.- Specified by:
matchesRequirements
in interfaceToolchainPrivate
- Parameters:
requirements
- Map<String, String> key value pair, may not benull
- Returns:
true
if the requirements match, otherwisefalse
-
getLog
protected org.codehaus.plexus.logging.Logger getLog() -
equals
-
hashCode
public int hashCode() -
toString
-