IService

The IService helper interface is not mandatory for defining services. It only simplifies the initialization and removal of services.

Services activation

In this method the service can be initialized and registered to the service registry. Possible exceptions are caught and logged by the system.

void activate(@NotNull IServiceRegistry aServiceRegistry) throws Exception;

Deactivating the service

In this method the service can be de-initialized and deregistered from the service registry.

void deactivate(@NotNull IServiceRegistry aServiceRegistry) throws Exception;