org.qi4j.api.service

## Class ServiceActivatorAdapter<ServiceType>

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

- Type Parameters:
    `ServiceType` - Type of the service.
  All Implemented Interfaces:
    Activator<ServiceReference<ServiceType>>
  Direct Known Subclasses:
    ServiceActivation.ServiceActivator

      public class ServiceActivatorAdapter<ServiceType>
      extends Object
      implements Activator<ServiceReference<ServiceType>>

  Adapter for Service Activator.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServiceActivatorAdapter()`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### ServiceActivatorAdapter

          public ServiceActivatorAdapter()

  - ### Method Detail

    - #### beforeActivation

          public void beforeActivation(ServiceReference<ServiceType> activating)
                                throws Exception

      Called before Service activation.
      Specified by:
        `beforeActivation` in interface `Activator<ServiceReference<ServiceType>>`
      Parameters:
        `activating` - Activating Service
      Throws:
        `Exception`

    - #### afterActivation

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

      Called after Service activation.
      Specified by:
        `afterActivation` in interface `Activator<ServiceReference<ServiceType>>`
      Parameters:
        `activated` - Activated Service
      Throws:
        `Exception`

    - #### beforePassivation

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

      Called before Service passivation.
      Specified by:
        `beforePassivation` in interface `Activator<ServiceReference<ServiceType>>`
      Parameters:
        `passivating` - Passivating Service
      Throws:
        `Exception`

    - #### afterPassivation

          public void afterPassivation(ServiceReference<ServiceType> passivated)
                                throws Exception

      Called after Service passivation.
      Specified by:
        `afterPassivation` in interface `Activator<ServiceReference<ServiceType>>`
      Parameters:
        `passivated` - Passivated Service
      Throws:
        `Exception`