Package org.apache.maven.impl
Class DefaultJavaToolchainFactory
java.lang.Object
org.apache.maven.impl.DefaultJavaToolchainFactory
- All Implemented Interfaces:
ToolchainFactory
@Named("jdk")
@Singleton
public class DefaultJavaToolchainFactory
extends Object
implements ToolchainFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a default toolchain instance using system defaults.createToolchain
(ToolchainModel model) Creates a toolchain instance from the provided model configuration.
-
Field Details
-
KEY_JAVAHOME
- See Also:
-
-
Constructor Details
-
DefaultJavaToolchainFactory
-
-
Method Details
-
createToolchain
Description copied from interface:ToolchainFactory
Creates a toolchain instance from the provided model configuration.- Specified by:
createToolchain
in interfaceToolchainFactory
- Parameters:
model
- The toolchain configuration model- Returns:
- A configured toolchain instance
-
createDefaultToolchain
Description copied from interface:ToolchainFactory
Creates a default toolchain instance using system defaults.- Specified by:
createDefaultToolchain
in interfaceToolchainFactory
- Returns:
- Optional containing the default toolchain if available
-