Package org.apache.maven.toolchain
Interface ToolchainManagerPrivate
-
- All Known Implementing Classes:
DefaultToolchainManagerPrivate
public interface ToolchainManagerPrivateComponent for use by themaven-toolchains-pluginonly. 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(java.lang.String type, MavenSession context)Retrieves every toolchains of given type available in user settings.voidstoreToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession context)Stores the toolchain into build context for later use by toolchain-aware plugins.
-
-
-
Method Detail
-
getToolchainsForType
ToolchainPrivate[] getToolchainsForType(java.lang.String type, MavenSession context) throws MisconfiguredToolchainException
Retrieves every toolchains of given type available in user settings.- Parameters:
type- the type, must not benullcontext- the Maven session, must not benull- Throws:
MisconfiguredToolchainException- Since:
- 3.0 (addition of the
MavenSessionparameter)
-
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 benullcontext- the Maven session, must not benull- Since:
- 2.0.9
- See Also:
ToolchainManager.getToolchainFromBuildContext(String, MavenSession)
-
-