org.apache.maven.toolchain
Class DefaultToolchain

java.lang.Object
  extended by org.apache.maven.toolchain.DefaultToolchain
All Implemented Interfaces:
Toolchain, ToolchainPrivate
Direct Known Subclasses:
DefaultJavaToolChain

public abstract class DefaultToolchain
extends Object
implements Toolchain, ToolchainPrivate

Author:
mkleint

Field Summary
static String KEY_TYPE
           
 
Constructor Summary
protected DefaultToolchain(ToolchainModel model, Logger logger)
           
protected DefaultToolchain(ToolchainModel model, String type, Logger logger)
           
 
Method Summary
 void addProvideToken(String type, RequirementMatcher matcher)
           
protected  Logger getLog()
           
 ToolchainModel getModel()
           
 String getType()
           
 boolean matchesRequirements(Map<String,String> requirements)
          Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.toolchain.Toolchain
findTool
 

Field Detail

KEY_TYPE

public static final String KEY_TYPE
See Also:
Constant Field Values
Constructor Detail

DefaultToolchain

protected DefaultToolchain(ToolchainModel model,
                           Logger logger)

DefaultToolchain

protected DefaultToolchain(ToolchainModel model,
                           String type,
                           Logger logger)
Method Detail

getType

public final String getType()
Specified by:
getType in interface Toolchain

getModel

public final ToolchainModel getModel()
Specified by:
getModel in interface ToolchainPrivate

addProvideToken

public final void addProvideToken(String type,
                                  RequirementMatcher matcher)

matchesRequirements

public boolean matchesRequirements(Map<String,String> requirements)
Description copied from interface: ToolchainPrivate
Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.

Specified by:
matchesRequirements in interface ToolchainPrivate
Parameters:
requirements - Map key value pair
Returns:
true if the requirements match, otherwise false

getLog

protected Logger getLog()


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.