@Component(role=ToolchainManagerPrivate.class) public class DefaultToolchainManagerPrivate extends DefaultToolchainManager implements ToolchainManagerPrivate
ROLE
Constructor and Description |
---|
DefaultToolchainManagerPrivate() |
Modifier and Type | Method and Description |
---|---|
ToolchainPrivate[] |
getToolchainsForType(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.
|
getStorageKey, getToolchainFromBuildContext, getToolchains
public ToolchainPrivate[] getToolchainsForType(String type, MavenSession context) throws MisconfiguredToolchainException
ToolchainManagerPrivate
getToolchainsForType
in interface ToolchainManagerPrivate
type
- the type, must not be null
context
- the Maven session, must not be null
MisconfiguredToolchainException
public void storeToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession session)
ToolchainManagerPrivate
storeToolchainToBuildContext
in interface ToolchainManagerPrivate
toolchain
- the toolchain to store, must not be null
session
- the Maven session, must not be null
ToolchainManager.getToolchainFromBuildContext(String, MavenSession)
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.