ComponentMetadataContext (Gradle API 4.9)
Date: 2018-07-16

org.gradle.api.artifacts

## Interface ComponentMetadataContext

-     @Incubating
      public interface ComponentMetadataContext

  Provides access to compoment metadata from a `ComponentMetadataRule`.
  Since:
    4.9

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `getDescriptor(Class<T> descriptorClass)` Used to access a specific descriptor format.
    `ComponentMetadataDetails` | `getDetails()`

- - ### Method Detail

    - #### getDescriptor

          <T> T getDescriptor(Class<T> descriptorClass)

      Used to access a specific descriptor format. For Ivy descriptor, an `ivy module descriptor` is returned.
      Type Parameters:
        `T` - the descriptor type
      Parameters:
        `descriptorClass` - the descriptor class
      Returns:
        a descriptor, or `null` if there was none of the requested type.
      See Also:
        `IvyModuleDescriptor`

    - #### getDetails

          ComponentMetadataDetails getDetails()