public interface ApplicationLifecycleService extends Service
ApplicationLifecycleService
are notified on several application events.
E.g. ApplicationLifecycleService#EVENT_APPLICATION_LIFECYCLE_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.
ApplicationLifecycleService#EVENT_APPLICATION_LIFECYCLE_STARTED
when all components including the adapters
are up and running.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME |
static String |
EVENT_APPLICATION_LIFECYCLE_PREPARED |
static String |
EVENT_APPLICATION_LIFECYCLE_PROVIDERS |
static String |
EVENT_APPLICATION_LIFECYCLE_STARTED |
Modifier and Type | Method and Description |
---|---|
void |
applicationPrepared(CdsRuntime cdsRuntime)
Called when the application is fully initialized but not started yet.
|
void |
applicationProviders(CdsRuntimeConfigurer configurer)
Called during initialization of after standard providers such as
com.sap.cds.services.runtime.UserInfoProvider have been registered. |
void |
applicationStarted()
Called when the application has been started.
|
static final String DEFAULT_NAME
static final String EVENT_APPLICATION_LIFECYCLE_PROVIDERS
static final String EVENT_APPLICATION_LIFECYCLE_PREPARED
static final String EVENT_APPLICATION_LIFECYCLE_STARTED
void applicationProviders(CdsRuntimeConfigurer configurer)
com.sap.cds.services.runtime.UserInfoProvider
have been registered.
Services and handlers are already available.configurer
- The instance configuring the CdsRuntime
.void applicationPrepared(CdsRuntime cdsRuntime)
cdsRuntime
- The initialized runtimevoid applicationStarted()
Copyright © 2020. All rights reserved.