Class SpringContextEventLoggerListener

java.lang.Object
com.github.seregamorph.testsmartcontext.SpringContextEventLoggerListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>

public class SpringContextEventLoggerListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
Helper bean that logs spring bootstrap and shutdown events.
Author:
Sergey Chernov
See Also:
  • Constructor Details

    • SpringContextEventLoggerListener

      public SpringContextEventLoggerListener()
  • Method Details

    • onCreated

      protected void onCreated()
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
    • onContextRefreshedEvent

      protected void onContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
    • onContextClosedEvent

      protected void onContextClosedEvent(org.springframework.context.event.ContextClosedEvent event)