org.qi4j.api.service

## Class ServiceActivation.ServiceActivator

- java.lang.Object
- - org.qi4j.api.service.ServiceActivatorAdapter<ServiceActivation>
  - - org.qi4j.api.service.ServiceActivation.ServiceActivator

- All Implemented Interfaces:
    Activator<ServiceReference<ServiceActivation>>
  Enclosing interface:
    ServiceActivation

      public static class ServiceActivation.ServiceActivator
      extends ServiceActivatorAdapter<ServiceActivation>

  Service Activator.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServiceActivation.ServiceActivator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterActivation(ServiceReference<ServiceActivation> activated)` Called after Service activation.
    `void` | `beforePassivation(ServiceReference<ServiceActivation> passivating)` Called before Service passivation.

    - ### Methods inherited from class org.qi4j.api.service.ServiceActivatorAdapter

      `afterPassivation, beforeActivation`

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

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

- - ### Constructor Detail

    - #### ServiceActivation.ServiceActivator

          public ServiceActivation.ServiceActivator()

  - ### Method Detail

    - #### afterActivation

          public void afterActivation(ServiceReference<ServiceActivation> activated)
                               throws Exception

      Description copied from class: `ServiceActivatorAdapter`
      Called after Service activation.
      Specified by:
        `afterActivation` in interface `Activator<ServiceReference<ServiceActivation>>`
      Overrides:
        `afterActivation` in class `ServiceActivatorAdapter<ServiceActivation>`
      Parameters:
        `activated` - Activated Service
      Throws:
        `Exception`

    - #### beforePassivation

          public void beforePassivation(ServiceReference<ServiceActivation> passivating)
                                 throws Exception

      Description copied from class: `ServiceActivatorAdapter`
      Called before Service passivation.
      Specified by:
        `beforePassivation` in interface `Activator<ServiceReference<ServiceActivation>>`
      Overrides:
        `beforePassivation` in class `ServiceActivatorAdapter<ServiceActivation>`
      Parameters:
        `passivating` - Passivating Service
      Throws:
        `Exception`