Package org.apache.maven.toolchain
Class DefaultToolchainManagerPrivate
java.lang.Object
org.apache.maven.toolchain.DefaultToolchainManager
org.apache.maven.toolchain.DefaultToolchainManagerPrivate
- All Implemented Interfaces:
ToolchainManager
,ToolchainManagerPrivate
@Component(role=ToolchainManagerPrivate.class)
public class DefaultToolchainManagerPrivate
extends DefaultToolchainManager
implements ToolchainManagerPrivate
- Author:
- mkleint, Robert Scholte
-
Field Summary
Fields inherited from interface org.apache.maven.toolchain.ToolchainManager
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetToolchainsForType
(String type, MavenSession context) Retrieves every toolchains of given type available in user settings.void
storeToolchainToBuildContext
(ToolchainPrivate toolchain, MavenSession session) Stores the toolchain into build context for later use by toolchain-aware plugins.Methods inherited from class org.apache.maven.toolchain.DefaultToolchainManager
getStorageKey, getToolchainFromBuildContext, getToolchains
-
Constructor Details
-
DefaultToolchainManagerPrivate
public DefaultToolchainManagerPrivate()
-
-
Method Details
-
getToolchainsForType
public ToolchainPrivate[] getToolchainsForType(String type, MavenSession context) throws MisconfiguredToolchainException Description copied from interface:ToolchainManagerPrivate
Retrieves every toolchains of given type available in user settings.- Specified by:
getToolchainsForType
in interfaceToolchainManagerPrivate
- Parameters:
type
- the type, must not benull
context
- the Maven session, must not benull
- Throws:
MisconfiguredToolchainException
-
storeToolchainToBuildContext
Description copied from interface:ToolchainManagerPrivate
Stores the toolchain into build context for later use by toolchain-aware plugins.- Specified by:
storeToolchainToBuildContext
in interfaceToolchainManagerPrivate
- Parameters:
toolchain
- the toolchain to store, must not benull
session
- the Maven session, must not benull
- See Also:
-