org.qi4j.api.activation

## Class ActivatorAdapter<ActivateeType>

- java.lang.Object
- - org.qi4j.api.activation.ActivatorAdapter<ActivateeType>

- Type Parameters:
    `ActivateeType` - Type of the activatee.
  All Implemented Interfaces:
    Activator<ActivateeType>
  Direct Known Subclasses:
    ApplicationEventStoreActivation.Activator, ApplicationManagerService.Activator, CircuitBreakerManagement.Activator, ConfigurationManagerService.Activator, DataSourceConfigurationManagerService.Activator, DataSourceServiceImporterActivation.Activator, EmbeddedSolrService.Activator, EventStoreActivation.Activator, FileConfigurationService.Activator, FileEntityStoreActivation.Activator, HttpRepositoryService.Activator, JdbmEntityStoreActivation.Activator, JettyActivation.Activator, JMXConnectorService.Activator, JSONMapEntityStoreActivation.Activator, LiquibaseService.Activator, MapEntityStoreActivation.Activator, MemoryRepositoryService.Activator, MigrationService.Activator, NativeRepositoryService.Activator, OSGiEnabledService.Activator, OSGiServiceExporter.Activator, RdbmsRepositoryService.Activator, RdfIndexingService.Activator, RestServerComposite.Activator, SolrQueryService.Activator, SQLAppStartup.Activator, YammerMetricsProvider.Activator

      public class ActivatorAdapter<ActivateeType>
      extends Object
      implements Activator<ActivateeType>

  Adapter for Activator.

  If you are thinking about Service activation, see `ServiceActivatorAdapter`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ActivatorAdapter()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterActivation(ActivateeType activated)` Called after activatee activation.
    `void` | `afterPassivation(ActivateeType passivated)` Called after activatee passivation.
    `void` | `beforeActivation(ActivateeType activating)` Called before activatee activation.
    `void` | `beforePassivation(ActivateeType passivating)` Called before activatee passivation.

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

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

- - ### Constructor Detail

    - #### ActivatorAdapter

          public ActivatorAdapter()

  - ### Method Detail

    - #### beforeActivation

          public void beforeActivation(ActivateeType activating)
                                throws Exception

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

    - #### afterActivation

          public void afterActivation(ActivateeType activated)
                               throws Exception

      Called after activatee activation.
      Specified by:
        `afterActivation` in interface `Activator<ActivateeType>`
      Parameters:
        `activated` - Activating activatee
      Throws:
        `Exception`

    - #### beforePassivation

          public void beforePassivation(ActivateeType passivating)
                                 throws Exception

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

    - #### afterPassivation

          public void afterPassivation(ActivateeType passivated)
                                throws Exception

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