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
@Named
@Singleton
public class DefaultToolchainManagerPrivate
extends DefaultToolchainManager
implements ToolchainManagerPrivate
TODO: refactor this, component extending component is bad practice.
- Author:
- mkleint, Robert Scholte
-
Field Summary
Fields inherited from class org.apache.maven.toolchain.DefaultToolchainManager
logger
Fields inherited from interface org.apache.maven.toolchain.ToolchainManager
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetToolchainsForType
(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.Methods inherited from class org.apache.maven.toolchain.DefaultToolchainManager
getStorageKey, getToolchainFromBuildContext, getToolchains
-
Constructor Details
-
DefaultToolchainManagerPrivate
-
-
Method Details
-
getToolchainsForType
public ToolchainPrivate[] getToolchainsForType(String type, MavenSession session) 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
session
- 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:
-