Class DefaultToolchain
java.lang.Object
org.apache.maven.toolchain.DefaultToolchain
- All Implemented Interfaces:
Toolchain,ToolchainPrivate
- Direct Known Subclasses:
JavaToolchainImpl
@Deprecated(since="4.0.0")
public abstract class DefaultToolchain
extends Object
implements Toolchain, ToolchainPrivate
Deprecated.
Default abstract toolchain implementation, to be used as base class for any toolchain implementation
to avoid rewriting usual code.
- Since:
- 2.0.9
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultToolchain(ToolchainModel model, String type, org.slf4j.Logger logger) Deprecated.protectedDefaultToolchain(ToolchainModel model, org.slf4j.Logger logger) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddProvideToken(String type, RequirementMatcher matcher) Deprecated.booleanDeprecated.protected org.slf4j.LoggergetLog()Deprecated.final ToolchainModelgetModel()Deprecated.final StringgetType()Deprecated.get the type of toolchain.inthashCode()Deprecated.booleanmatchesRequirements(Map<String, String> requirements) Deprecated.Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.toString()Deprecated.
-
Field Details
-
KEY_TYPE
-
-
Constructor Details
-
DefaultToolchain
Deprecated.- Parameters:
model- the model, must not benulllogger- the logger, must not benull
-
DefaultToolchain
Deprecated.- Parameters:
model- the model, must not benulltype- the typelogger- the logger, must not benull
-
-
Method Details
-
getType
-
getModel
Deprecated.- Specified by:
getModelin interfaceToolchainPrivate- Returns:
- the original model wrapped by this interface
-
addProvideToken
Deprecated. -
matchesRequirements
Deprecated.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.slf4j.Logger getLog()Deprecated. -
equals
-
hashCode
-
toString
-
Toolchaininstead.