org.qi4j.bootstrap

## Interface ImportedServiceDeclaration

-     public interface ImportedServiceDeclaration

  Fluent API for declaring imported services. Instances of this API are acquired by calling `ModuleAssembly.importedServices(Class[])`.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Class<? extends ServiceImporter>` | `INSTANCE`
    `static Class<? extends ServiceImporter>` | `NEW_OBJECT`
    `static Class<? extends ServiceImporter>` | `SERVICE_IMPORTER`
    `static Class<? extends ServiceImporter>` | `SERVICE_SELECTOR`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ImportedServiceDeclaration` | `identifiedBy(String identity)`
    `ImportedServiceDeclaration` | `importedBy(Class<? extends ServiceImporter> serviceImporterClass)`
    `ImportedServiceDeclaration` | `importOnStartup()`
    `ImportedServiceDeclaration` | `setMetaInfo(Object serviceAttribute)`
    `ImportedServiceDeclaration` | `taggedWith(String... tags)`
    `ImportedServiceDeclaration` | `visibleIn(Visibility visibility)`
    `ImportedServiceDeclaration` | `withActivators(Class<? extends Activator<?>>... activators)` Set the imported service activators.

- - ### Field Detail

    - #### INSTANCE

          static final Class<? extends ServiceImporter> INSTANCE

    - #### NEW_OBJECT

          static final Class<? extends ServiceImporter> NEW_OBJECT

    - #### SERVICE_SELECTOR

          static final Class<? extends ServiceImporter> SERVICE_SELECTOR

    - #### SERVICE_IMPORTER

          static final Class<? extends ServiceImporter> SERVICE_IMPORTER

  - ### Method Detail

    - #### visibleIn

          ImportedServiceDeclaration visibleIn(Visibility visibility)

    - #### importedBy

          ImportedServiceDeclaration importedBy(Class<? extends ServiceImporter> serviceImporterClass)

    - #### identifiedBy

          ImportedServiceDeclaration identifiedBy(String identity)

    - #### taggedWith

          ImportedServiceDeclaration taggedWith(String... tags)

    - #### setMetaInfo

          ImportedServiceDeclaration setMetaInfo(Object serviceAttribute)

    - #### importOnStartup

          ImportedServiceDeclaration importOnStartup()

    - #### withActivators

          ImportedServiceDeclaration withActivators(Class<? extends Activator<?>>... activators)

      Set the imported service activators. Activators are executed in order around the ServiceReference activation and passivation.
      Parameters:
        `activators` - the imported service activators
      Returns:
        the assembly