Package org.apache.maven.toolchain
Interface ToolchainManagerPrivate
-
- All Known Implementing Classes:
DefaultToolchainManagerPrivate
public interface ToolchainManagerPrivate
Component for use by themaven-toolchains-plugin
only. It provides API:- to retrieve every toolchains available in user settings,
- to store chosen toolchain into build context for later use by toolchain-aware plugins.
- Since:
- 2.0.9
- Author:
- mkleint
- See Also:
ToolchainManager.getToolchainFromBuildContext(String, MavenSession)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ToolchainPrivate[]
getToolchainsForType(String type, MavenSession context)
Retrieves every toolchains of given type available in user settings.void
storeToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession context)
Stores the toolchain into build context for later use by toolchain-aware plugins.
-
-
-
Method Detail
-
getToolchainsForType
ToolchainPrivate[] getToolchainsForType(String type, MavenSession context) throws MisconfiguredToolchainException
Retrieves every toolchains of given type available in user settings.- Parameters:
type
- the type, must not benull
context
- the Maven session, must not benull
- Throws:
MisconfiguredToolchainException
- Since:
- 3.0 (addition of the
MavenSession
parameter)
-
storeToolchainToBuildContext
void storeToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession context)
Stores the toolchain into build context for later use by toolchain-aware plugins.- Parameters:
toolchain
- the toolchain to store, must not benull
context
- the Maven session, must not benull
- Since:
- 2.0.9
- See Also:
ToolchainManager.getToolchainFromBuildContext(String, MavenSession)
-
-