org.qi4j.api.service
Interface ServiceActivation

All Known Subinterfaces:
ElasticSearchSupport, ESClusterIndexQueryService, ESFilesystemIndexQueryService, ESMemoryIndexQueryService, HazelcastEntityStoreService, IniSecurityManagerService, JCloudsMapEntityStoreService, MongoMapEntityStoreService, PasswordRealmService, PreferencesEntityStoreService, RedisMapEntityStoreService, RiakMapEntityStoreService, SQLEntityStoreService
All Known Implementing Classes:
AbstractElasticSearchSupport, ESClusterSupport, ESFilesystemSupport, ESMemorySupport, HazelcastEntityStoreMixin, IniSecurityManagerService.Mixin, JCloudsMapEntityStoreMixin, MongoMapEntityStoreMixin, PasswordRealmMixin, PreferencesEntityStoreMixin, RedisMapEntityStoreMixin, RiakHttpMapEntityStoreMixin, RiakProtobufMapEntityStoreMixin, SQLEntityStoreMixin

@Activators(value=ServiceActivation.ServiceActivator.class)
public interface ServiceActivation

Convenience interface for simple Service Activation. Let your ServiceComposite extends ServiceActivation and implement it in one of its Mixins. A corresponding Activator is automatically registered.


Nested Class Summary
static class ServiceActivation.ServiceActivator
          Service Activator.
 
Method Summary
 void activateService()
          Called after ServiceComposite Activation.
 void passivateService()
          Called before ServiceComposite Passivation.
 

Method Detail

activateService

void activateService()
                     throws java.lang.Exception
Called after ServiceComposite Activation.

Throws:
java.lang.Exception

passivateService

void passivateService()
                      throws java.lang.Exception
Called before ServiceComposite Passivation.

Throws:
java.lang.Exception