public interface ApplicationLifecycleService extends Service
ApplicationLifecycleService
are notified on several application events.
E.g. ApplicationLifecycleService#EVENT_APPLICATION_PREPARED
is sent when all application
objects have been initialized but the adapters hasn't been started yet. For Spring applications all beans
are available.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME |
static String |
EVENT_APPLICATION_PREPARED |
static String |
EVENT_APPLICATION_STOPPED |
static String |
EVENT_ERROR_RESPONSE |
Modifier and Type | Method and Description |
---|---|
void |
applicationPrepared()
Called when the application is fully initialized but not started yet.
|
void |
applicationStopped()
Called when the application is stopped to allow termination of regular task threads.
|
ErrorResponseEventContext.ErrorResponse |
errorResponse(ServiceException exception)
Called by protoocol adapters to control transformation of exception and messages into an error response.
|
static final String DEFAULT_NAME
static final String EVENT_APPLICATION_PREPARED
static final String EVENT_APPLICATION_STOPPED
static final String EVENT_ERROR_RESPONSE
void applicationPrepared()
void applicationStopped()
ErrorResponseEventContext.ErrorResponse errorResponse(ServiceException exception)
exception
- the ServiceException
ErrorResponseEventContext.ErrorResponse
Copyright © 2023. All rights reserved.