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, org.codehaus.plexus.logging.Logger logger)
           
protected DefaultToolchain(ToolchainModel model, String type, org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 void addProvideToken(String type, RequirementMatcher matcher)
           
protected  org.codehaus.plexus.logging.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
 
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,
                           org.codehaus.plexus.logging.Logger logger)

DefaultToolchain

protected DefaultToolchain(ToolchainModel model,
                           String type,
                           org.codehaus.plexus.logging.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 org.codehaus.plexus.logging.Logger getLog()


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