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
@Component(role=ToolchainManagerPrivate.class)
public class DefaultToolchainManagerPrivate
extends DefaultToolchainManager
implements ToolchainManagerPrivate
- Author:
- mkleint, Robert Scholte
-
Field Summary
Fields inherited from interface org.apache.maven.toolchain.ToolchainManager
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetToolchainsForType(String type, MavenSession context) Retrieves every toolchains of given type available in user settings.voidstoreToolchainToBuildContext(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
public DefaultToolchainManagerPrivate()
-
-
Method Details
-
getToolchainsForType
public ToolchainPrivate[] getToolchainsForType(String type, MavenSession context) throws MisconfiguredToolchainException Description copied from interface:ToolchainManagerPrivateRetrieves every toolchains of given type available in user settings.- Specified by:
getToolchainsForTypein interfaceToolchainManagerPrivate- Parameters:
type- the type, must not benullcontext- the Maven session, must not benull- Throws:
MisconfiguredToolchainException
-
storeToolchainToBuildContext
Description copied from interface:ToolchainManagerPrivateStores the toolchain into build context for later use by toolchain-aware plugins.- Specified by:
storeToolchainToBuildContextin interfaceToolchainManagerPrivate- Parameters:
toolchain- the toolchain to store, must not benullsession- the Maven session, must not benull- See Also:
-