org.gradle.platform.base.component

## Class BaseComponentSpec

- java.lang.Object
- - org.gradle.platform.base.component.internal.AbstractComponentSpec
  - - org.gradle.platform.base.component.internal.DefaultComponentSpec
    - - org.gradle.platform.base.component.BaseComponentSpec

- All Implemented Interfaces:
    Named, ComponentSpec, GeneralComponentSpec, org.gradle.platform.base.internal.ComponentSpecInternal, SourceComponentSpec, VariantComponentSpec

      @Incubating
      public class BaseComponentSpec
      extends org.gradle.platform.base.component.internal.DefaultComponentSpec
      implements GeneralComponentSpec

  Base class that may be used for custom `GeneralComponentSpec` implementations. However, it is generally better to use an interface annotated with `Managed` and not use an implementation class at all.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.gradle.platform.base.component.internal.DefaultComponentSpec

      `org.gradle.platform.base.component.internal.DefaultComponentSpec.ComponentInfo`

    - ### Nested classes/interfaces inherited from interface org.gradle.api.Named

      `Named.Namer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BaseComponentSpec()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ModelMap<BinarySpec>` | `getBinaries()` The variants of this component.
    `ModelMap<LanguageSourceSet>` | `getSources()` The source sets for this component.

    - ### Methods inherited from class org.gradle.platform.base.component.internal.DefaultComponentSpec

      `create, getInfo`

    - ### Methods inherited from class org.gradle.platform.base.component.internal.AbstractComponentSpec

      `getDisplayName, getIdentifier, getName, getProjectPath, getTypeName, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.gradle.platform.base.ComponentSpec

      `getDisplayName, getProjectPath`

    - ### Methods inherited from interface org.gradle.api.Named

      `getName`

- - ### Constructor Detail

    - #### BaseComponentSpec

          public BaseComponentSpec()

  - ### Method Detail

    - #### getSources

          public ModelMap<LanguageSourceSet> getSources()

      Description copied from interface: `SourceComponentSpec`
      The source sets for this component.
      Specified by:
        `getSources` in interface `SourceComponentSpec`

    - #### getBinaries

          public ModelMap<BinarySpec> getBinaries()

      Description copied from interface: `VariantComponentSpec`
      The variants of this component.
      Specified by:
        `getBinaries` in interface `VariantComponentSpec`