org.apache.maven.toolchain
Class DefaultToolchainManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.toolchain.DefaultToolchainManager
All Implemented Interfaces:
ToolchainManager, ToolchainManagerPrivate, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class DefaultToolchainManager
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ToolchainManager, ToolchainManagerPrivate, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

Author:
mkleint

Field Summary
 
Fields inherited from interface org.apache.maven.toolchain.ToolchainManager
ROLE
 
Fields inherited from interface org.apache.maven.toolchain.ToolchainManagerPrivate
ROLE
 
Constructor Summary
DefaultToolchainManager()
           
 
Method Summary
 void contextualize(org.codehaus.plexus.context.Context context)
           
static String getStorageKey(String type)
           
 Toolchain getToolchainFromBuildContext(String type, MavenSession session)
          to be used from plugins capable of working with toolchains.
 ToolchainPrivate[] getToolchainsForType(String type)
          Retrieves the toolchains of given type from the user settings.
 void storeToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession session)
          Stores the toolchain into build context.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultToolchainManager

public DefaultToolchainManager()
Method Detail

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException
Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException

getToolchainsForType

public ToolchainPrivate[] getToolchainsForType(String type)
                                        throws MisconfiguredToolchainException
Description copied from interface: ToolchainManagerPrivate
Retrieves the toolchains of given type from the user settings.

Specified by:
getToolchainsForType in interface ToolchainManagerPrivate
Throws:
MisconfiguredToolchainException

getToolchainFromBuildContext

public Toolchain getToolchainFromBuildContext(String type,
                                              MavenSession session)
Description copied from interface: ToolchainManager
to be used from plugins capable of working with toolchains.

Specified by:
getToolchainFromBuildContext in interface ToolchainManager

storeToolchainToBuildContext

public void storeToolchainToBuildContext(ToolchainPrivate toolchain,
                                         MavenSession session)
Description copied from interface: ToolchainManagerPrivate
Stores the toolchain into build context.

Specified by:
storeToolchainToBuildContext in interface ToolchainManagerPrivate

getStorageKey

public static final String getStorageKey(String type)


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