ValueSourceSpec (Gradle API 9.7.1)
Description: declaration: package: org.gradle.api.provider, interface: ValueSourceSpec

# Interface ValueSourceSpec<P extends ValueSourceParameters>

Type Parameters:
  `P` - The value source specific parameter type.

public interface ValueSourceSpec<P extends ValueSourceParameters>
Base configuration for value source definitions.

Since:
  6.1
See Also:
  - `ProviderFactory.of(Class, Action)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `P`
  `getParameters()`
  The parameters for the value source.
  `void`
  `parameters(Action<? super P> action)`
  Configure the parameters for the value source.

- ## Method Details

  - ### getParameters

    P getParameters()
    The parameters for the value source.

    When the value source declares `ValueSourceParameters.None` as its parameters type, this returns the `ValueSourceParameters.None` singleton.

    See Also:
      - `ProviderFactory.of(Class, Action)`

  - ### parameters

    void parameters(Action<? super P> action)
    Configure the parameters for the value source.

    The action is invoked even when the value source declares `ValueSourceParameters.None` as its parameters type; in that case it receives the `ValueSourceParameters.None` singleton.

    See Also:
      - `ProviderFactory.of(Class, Action)`