Package io.meeds.deeds.common.service
Class ListenerServiceInit
java.lang.Object
io.meeds.deeds.common.service.ListenerServiceInit
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service
public class ListenerServiceInit
extends Object
implements org.springframework.context.ApplicationContextAware
A class to initialize ListenerService to avoid having cyclic dependency:
ListenerService -> EventListeners -> Service Layer Components ->
ListenerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
ListenerServiceInit
public ListenerServiceInit()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
init
@PostConstruct public void init()
-