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
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefaultToolchain(ToolchainModel model, String type, org.slf4j.Logger logger) protectedDefaultToolchain(ToolchainModel model, org.slf4j.Logger logger) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidaddProvideToken(String type, RequirementMatcher matcher) booleanprotected org.slf4j.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 be- null
- logger- the logger, must not be- null
 
- 
DefaultToolchain- Parameters:
- model- the model, must not be- null
- type- the type
- logger- the logger, must not be- null
 
 
- 
- 
Method Details- 
getTypeDescription copied from interface:Toolchainget the type of toolchain.
- 
getModel- Specified by:
- getModelin interface- ToolchainPrivate
- Returns:
- the original model wrapped by this interface
 
- 
addProvideToken
- 
matchesRequirementsDescription copied from interface:ToolchainPrivateLet the toolchain decide if it matches requirements defined in the toolchain plugin configuration.- Specified by:
- matchesRequirementsin interface- ToolchainPrivate
- Parameters:
- requirements- Map<String, String> key value pair, may not be- null
- Returns:
- trueif the requirements match, otherwise- false
 
- 
getLogprotected org.slf4j.Logger getLog()
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-