@Named @Singleton public class DefaultToolchainManagerPrivate extends DefaultToolchainManager implements ToolchainManagerPrivate
logger
ROLE
Constructor and Description |
---|
DefaultToolchainManagerPrivate(Map<String,ToolchainFactory> factories) |
Modifier and Type | Method and Description |
---|---|
ToolchainPrivate[] |
getToolchainsForType(String type,
MavenSession session)
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
@Inject public DefaultToolchainManagerPrivate(Map<String,ToolchainFactory> factories)
public ToolchainPrivate[] getToolchainsForType(String type, MavenSession session) throws MisconfiguredToolchainException
ToolchainManagerPrivate
getToolchainsForType
in interface ToolchainManagerPrivate
type
- the type, must not be null
session
- 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–2022 The Apache Software Foundation. All rights reserved.