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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) protected voidonContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) protected voidonContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
SpringContextEventLoggerListener
public SpringContextEventLoggerListener()
-
-
Method Details
-
onCreated
protected void onCreated() -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) - Specified by:
onApplicationEventin interfaceorg.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)
-