Class ListenerService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    @Component
    public class ListenerService
    extends Object
    implements org.springframework.context.ApplicationContextAware
    • Constructor Detail

      • ListenerService

        public ListenerService()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • addListener

        public void addListener​(EventListener<?> listener)
      • removeListsner

        public void removeListsner​(String listenerName)
      • removeListsner

        public void removeListsner​(String eventName,
                                   String listenerName)
      • publishEvent

        public void publishEvent​(String eventName,
                                 Object data)