Package org.apache.maven.internal.impl
Class DefaultToolchainManager
java.lang.Object
org.apache.maven.internal.impl.DefaultToolchainManager
- All Implemented Interfaces:
Service
,ToolchainManager
-
Constructor Summary
ConstructorDescriptionDefaultToolchainManager
(DefaultToolchainManagerPrivate toolchainManagerPrivate) -
Method Summary
Modifier and TypeMethodDescriptiongetToolchainFromBuildContext
(Session session, String type) getToolchainsForType
(Session session, String type) void
storeToolchainToBuildContext
(Session session, Toolchain toolchain)
-
Constructor Details
-
DefaultToolchainManager
-
-
Method Details
-
getToolchains
public List<Toolchain> getToolchains(Session session, String type, Map<String, String> requirements) throws ToolchainManagerException- Specified by:
getToolchains
in interfaceToolchainManager
- Returns:
- the selected
Toolchain
s - Throws:
ToolchainManagerException
- if an exception occurs
-
getToolchainFromBuildContext
public Optional<Toolchain> getToolchainFromBuildContext(Session session, String type) throws ToolchainManagerException - Specified by:
getToolchainFromBuildContext
in interfaceToolchainManager
- Returns:
- the selected
Toolchain
- Throws:
ToolchainManagerException
- if an exception occurs
-
getToolchainsForType
public List<Toolchain> getToolchainsForType(Session session, String type) throws ToolchainManagerException - Specified by:
getToolchainsForType
in interfaceToolchainManager
- Returns:
- the selected
Toolchain
s - Throws:
ToolchainManagerException
- if an exception occurs
-
storeToolchainToBuildContext
public void storeToolchainToBuildContext(Session session, Toolchain toolchain) throws ToolchainManagerException - Specified by:
storeToolchainToBuildContext
in interfaceToolchainManager
- Throws:
ToolchainManagerException
- if an exception occurs
-