org.qi4j.bootstrap

## Interface ServiceDeclaration

-     public interface ServiceDeclaration

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

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ServiceDeclaration` | `identifiedBy(String identity)`
    `ServiceDeclaration` | `instantiateOnStartup()`
    `ServiceDeclaration` | `setMetaInfo(Object serviceAttribute)`
    `ServiceDeclaration` | `taggedWith(String... tags)`
    `ServiceDeclaration` | `visibleIn(Visibility visibility)`
    `ServiceDeclaration` | `withActivators(Class<? extends Activator<?>>... activators)` Set the service activators.
    `ServiceDeclaration` | `withConcerns(Class<?>... concerns)`
    `ServiceDeclaration` | `withMixins(Class<?>... mixins)`
    `ServiceDeclaration` | `withSideEffects(Class<?>... sideEffects)`
    `ServiceDeclaration` | `withTypes(Class<?>... types)`

- - ### Method Detail

    - #### setMetaInfo

          ServiceDeclaration setMetaInfo(Object serviceAttribute)

    - #### visibleIn

          ServiceDeclaration visibleIn(Visibility visibility)

    - #### withConcerns

          ServiceDeclaration withConcerns(Class<?>... concerns)

    - #### withSideEffects

          ServiceDeclaration withSideEffects(Class<?>... sideEffects)

    - #### withMixins

          ServiceDeclaration withMixins(Class<?>... mixins)

    - #### withTypes

          ServiceDeclaration withTypes(Class<?>... types)

    - #### identifiedBy

          ServiceDeclaration identifiedBy(String identity)

    - #### taggedWith

          ServiceDeclaration taggedWith(String... tags)

    - #### instantiateOnStartup

          ServiceDeclaration instantiateOnStartup()

    - #### withActivators

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

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