# Interface JavaToolchainRequest

@Incubating public interface JavaToolchainRequest
Describes Java toolchains that need to be auto-provisioned, including their properties (see `JavaToolchainSpec`} and the build environment they are needed in.

Since:
  7.6

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BuildPlatform`
  `getBuildPlatform()`
  Returns the build platform.
  `JavaToolchainSpec`
  `getJavaToolchainSpec()`
  Returns the java toolchain spec.

- ## Method Details

  - ### getJavaToolchainSpec

    JavaToolchainSpec getJavaToolchainSpec()
    Returns the java toolchain spec.
    Since:
      7.6

  - ### getBuildPlatform

    BuildPlatform getBuildPlatform()
    Returns the build platform.
    Since:
      7.6