Package io.meeds.social.common
Class ContainerStartupTaskService
java.lang.Object
io.meeds.social.common.ContainerStartupTaskService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service
public class ContainerStartupTaskService
extends Object
implements org.springframework.context.ApplicationContextAware
A Service used to execute in an async way, server startup Tasks such as
importing default data or configuration
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContainerStartupTaskService
public ContainerStartupTaskService()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
init
@PostConstruct public void init() -
start
public void start() -
addTask
-
stop
@PreDestroy public void stop()
-