org.qi4j.tools.model.descriptor

## Class ImportedServiceCompositeDescriptor

- java.lang.Object
- - org.qi4j.tools.model.descriptor.ImportedServiceCompositeDescriptor

- All Implemented Interfaces:
    CompositeDescriptor, ModelDescriptor, MetaInfoHolder, HasTypes

      public class ImportedServiceCompositeDescriptor
      extends Object
      implements CompositeDescriptor

  XXX Workaround for inconsistency in Qi4J core-api/spi ImportedServiceDescriptor wrapper as composite

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected ImportedServiceDescriptor` | `importedService`
    `protected List<Class<?>>` | `mixins`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ImportedServiceCompositeDescriptor(ImportedServiceDescriptor descriptor)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ImportedServiceDescriptor` | `importedService()`
    `boolean` | `isAssignableTo(Class<?> type)`
    `<T> T` | `metaInfo(Class<T> infoType)` Get metadata that implements the given type.
    `Iterable<Class<?>>` | `mixinTypes()`
    `Class<?>` | `primaryType()`
    `Class<? extends ServiceImporter>` | `serviceImporter()`
    `String` | `toURI()`
    `Iterable<Class<?>>` | `types()`
    `Visibility` | `visibility()`

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

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

- - ### Field Detail

    - #### importedService

          protected ImportedServiceDescriptor importedService

    - #### mixins

          protected final List<Class<?>> mixins

  - ### Constructor Detail

    - #### ImportedServiceCompositeDescriptor

          public ImportedServiceCompositeDescriptor(ImportedServiceDescriptor descriptor)

  - ### Method Detail

    - #### importedService

          public ImportedServiceDescriptor importedService()

    - #### mixinTypes

          public Iterable<Class<?>> mixinTypes()

      Specified by:
        `mixinTypes` in interface `CompositeDescriptor`

    - #### primaryType

          public Class<?> primaryType()

      Specified by:
        `primaryType` in interface `CompositeDescriptor`

    - #### visibility

          public Visibility visibility()

      Specified by:
        `visibility` in interface `ModelDescriptor`

    - #### metaInfo

          public <T> T metaInfo(Class<T> infoType)

      Description copied from interface: `MetaInfoHolder`
      Get metadata that implements the given type. The info is registered during assembly of the application.
      Specified by:
        `metaInfo` in interface `MetaInfoHolder`
      Parameters:
        `infoType` - the type of metadata to be returned
      Returns:
        the metadata for the given type, or `null` if no such metadata has been registered

    - #### types

          public Iterable<Class<?>> types()

      Specified by:
        `types` in interface `HasTypes`

    - #### isAssignableTo

          public boolean isAssignableTo(Class<?> type)

      Specified by:
        `isAssignableTo` in interface `ModelDescriptor`

    - #### serviceImporter

          public Class<? extends ServiceImporter> serviceImporter()

    - #### toURI

          public String toURI()