NamedDomainObjectProvider (Gradle API 5.0)
Date: 2018-11-26

Package org.gradle.api

## Interface NamedDomainObjectProvider<T>

- Type Parameters:
    `T` - type of domain object
  All Superinterfaces:
    `Provider<T>`
  All Known Subinterfaces:
    `TaskProvider<T>`

      @Incubating
      public interface NamedDomainObjectProvider<T>
      extends Provider<T>

  Provides a domain object of the given type.
  Since:
    4.10

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `configure​(Action<? super T> action)` | Configures the domain object with the given action.
    `java.lang.String` | `getName​()` | The domain object name referenced by this provider.

    - ### Methods inherited from interface org.gradle.api.provider.Provider

      `flatMap, get, getOrElse, getOrNull, isPresent, map`

- - ### Method Detail

    - #### configure

          void configure​(Action<? super T> action)

      Configures the domain object with the given action. Actions are run in the order added.
      Parameters:
        `action` - A `Action` that can configure the domain object when required.
      Since:
        4.10

    - #### getName

          java.lang.String getName​()

      The domain object name referenced by this provider.

      Must be constant for the life of the object.

      Returns:
        The domain object. Never null.
      Since:
        4.10