Package com.almis.awe.service
Class InitService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.InitService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.ApplicationContextAware
public class InitService
extends ServiceConfig
implements org.springframework.beans.factory.DisposableBean
Manage application initialization
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Launch services when application have been started (before spring context)void
Launch initial servicesvoid
onApplicationStart
(org.springframework.context.event.ContextRefreshedEvent event) Launch services when application have been started (before spring context)void
Launch a client initializationMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
InitService
Autowired constructor- Parameters:
launcherService
- Launcher service
-
-
Method Details
-
onApplicationStart
@EventListener public void onApplicationStart(org.springframework.context.event.ContextRefreshedEvent event) Launch services when application have been started (before spring context)- Parameters:
event
- Context refresh event
-
destroy
Launch services when application have been started (before spring context)- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
onClientStart
public void onClientStart()Launch a client initialization -
launchPhaseServices
Launch initial services- Parameters:
phase
- Service phase
-