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 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
 

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 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:

getLog

protected Logger getLog()


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.