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
Constructors Constructor Description InitService(LauncherService launcherService)
Autowired constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Launch services when application have been started (before spring context)void
launchPhaseServices(LaunchPhaseType phase)
Launch initial servicesvoid
onApplicationStart(org.springframework.context.event.ContextRefreshedEvent event)
Launch services when application have been started (before spring context)void
onClientStart()
Launch a client initialization-
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
-
-
-
Constructor Detail
-
InitService
public InitService(LauncherService launcherService)
Autowired constructor- Parameters:
launcherService
- Launcher service
-
-
Method Detail
-
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
public void destroy() throws Exception
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
public void launchPhaseServices(LaunchPhaseType phase)
Launch initial services- Parameters:
phase
- Service phase
-
-