org.qi4j.api.service
Interface Activatable

All Known Subinterfaces:
ApplicationManagerService, ApplicationSPI, CircuitBreakerManagement, ConfigurationManagerService, ConsoleViewerComposite, DataSourceConfigurationManagerService, DataSourceService, DataSourceServiceComposite, EmbeddedSolrService, FileConfiguration, FileEntityStoreService, GaeEntityStoreService, GaeEntityStoreService, HazelcastEntityStoreService, HttpRepositoryService, JaxWsService, JdbmEntityStoreService, JdbmEventStoreService, JMXConnectorService, LayerSPI, LiquibaseService, MemoryEventStoreService, MemoryRepositoryService, MigrationService, NativeRepositoryService, NeoEntityStoreService, OSGiEnabledService, OSGiServiceExporter, PreferencesEntityStoreService, RdbmsRepositoryService, RdfIndexingEngineService, RdfIndexingService, RestServerComposite, SchedulerService, ShiroLifecycleService, SolrQueryService, SQLEntityStoreService, SQLIndexingEngineService, VoldemortEntityStoreService
All Known Implementing Classes:
AbstractApplicationEventStoreMixin, AbstractEventStoreMixin, AbstractSQLIndexing, AbstractSQLQuerying, AbstractSQLStartup, ApplicationManagerService.Mixin, CircuitBreakerManagement.Mixin, Configuration.ConfigurationMixin, ConfigurationManagerService.Mixin, ConsoleViewerMixin, DataSourceConfigurationManagerService.Mixin, DataSourceService.Mixin, DBCPBasicDataSourceServiceMixin, EhCachePoolMixin, EmbeddedSolrService.EmbeddedSolrServiceMixin, FileConfiguration.Mixin, FileEntityStoreMixin, GaeEntityStoreMixin, GaeEntityStoreMixin, HazelcastEntityStoreMixin, HttpRepositoryService.HttpRepositoryMixin, JaxWsService.JaxWsMixin, JdbmEntityStoreMixin, JdbmEventStoreService.JdbmEventStoreMixin, JettyMixin, JMXConnectorService.JmxConnectorMixin, JSONMapEntityStoreMixin, LiquibaseService.Mixin, MapEntityStoreMixin, MemoryEventStoreService.MemoryEventStoreMixin, MemoryRepositoryService.MemoryRepositoryMixin, MigrationService.MigrationMixin, NativeRepositoryService.NativeRepositoryMixin, NeoEntityStoreMixin, OSGiEnabledService.OSGiEnabledServiceMixin, OSGiServiceExporter.OSGiServiceExporterMixin, PGSQLDataSourceServiceMixin, PostgreSQLAppStartup, PostgreSQLIndexExporter, PostgreSQLIndexing, PostgreSQLQuerying, PreferencesEntityStoreMixin, RdbmsRepositoryService.RdbmsRepositoryMixin, RdfIndexingService.RdfEntityIndexerMixin, RestServerMixin, SchedulerActivation, ShiroLifecycleService.Mixin, SolrEntityIndexerMixin, SQLActivatable, SQLEntityStoreMixin, VoldemortEntityStoreMixin

public interface Activatable

Instances that want to get callbacks on activation and passivation should implement this.


Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
 void passivate()
          This is invoked on the service when the instance is being passivated
 

Method Detail

activate

void activate()
              throws Exception
This is invoked on the service when the instance is being activated

Throws:
Exception - if service could not be activated

passivate

void passivate()
               throws Exception
This is invoked on the service when the instance is being passivated

Throws:
Exception - if the service could not be passivated