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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultToolchain(ToolchainModel model, String type, org.codehaus.plexus.logging.Logger logger) protectedDefaultToolchain(ToolchainModel model, org.codehaus.plexus.logging.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddProvideToken(String type, RequirementMatcher matcher) booleanprotected org.codehaus.plexus.logging.LoggergetLog()final ToolchainModelgetModel()final StringgetType()get the type of toolchain.inthashCode()booleanmatchesRequirements(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 benulllogger- the logger, must not benull
-
DefaultToolchain
protected DefaultToolchain(ToolchainModel model, String type, org.codehaus.plexus.logging.Logger logger) - Parameters:
model- the model, must not benulltype- the typelogger- the logger, must not benull
-
-
Method Details
-
getType
Description copied from interface:Toolchainget the type of toolchain. -
getModel
- Specified by:
getModelin interfaceToolchainPrivate- Returns:
- the original model wrapped by this interface
-
addProvideToken
-
matchesRequirements
Description copied from interface:ToolchainPrivateLet the toolchain decide if it matches requirements defined in the toolchain plugin configuration.- Specified by:
matchesRequirementsin interfaceToolchainPrivate- Parameters:
requirements- Map<String, String> key value pair, may not benull- Returns:
trueif the requirements match, otherwisefalse
-
getLog
protected org.codehaus.plexus.logging.Logger getLog() -
equals
-
hashCode
public int hashCode() -
toString
-