Package org.apache.maven.toolchain
Class DefaultToolchainManager
java.lang.Object
org.apache.maven.toolchain.DefaultToolchainManager
- All Implemented Interfaces:
- ToolchainManager
- Direct Known Subclasses:
- DefaultToolchainManagerPrivate
@Component(role=ToolchainManager.class)
public class DefaultToolchainManager
extends Object
implements ToolchainManager
- Author:
- mkleint
- 
Field SummaryFields inherited from interface org.apache.maven.toolchain.ToolchainManagerROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic final StringgetStorageKey(String type) getToolchainFromBuildContext(String type, MavenSession session) Retrieve toolchain of specified type from build context.getToolchains(MavenSession session, String type, Map<String, String> requirements) Select all toolchains available in user settings matching the type and requirements, independently frommaven-toolchains-plugin.
- 
Constructor Details- 
DefaultToolchainManagerpublic DefaultToolchainManager()
 
- 
- 
Method Details- 
getToolchainFromBuildContextDescription copied from interface:ToolchainManagerRetrieve toolchain of specified type from build context. It is expected thatmaven-toolchains-plugincontains the configuration to select the appropriate toolchain and is executed at the beginning of the build.- Specified by:
- getToolchainFromBuildContextin interface- ToolchainManager
- Parameters:
- type- the type, must not be- null
- session- the Maven session, must not be- null
- Returns:
- the toolchain selected by maven-toolchains-plugin
 
- 
getToolchainspublic List<Toolchain> getToolchains(MavenSession session, String type, Map<String, String> requirements) Description copied from interface:ToolchainManagerSelect all toolchains available in user settings matching the type and requirements, independently frommaven-toolchains-plugin.- Specified by:
- getToolchainsin interface- ToolchainManager
- Parameters:
- session- the Maven session, must not be- null
- type- the type, must not be- null
- requirements- the requirements, may be- null
- Returns:
- the matching toolchains, never null
 
- 
getStorageKey
 
-