Class ClasspathLoggingApplicationListener
- java.lang.Object
- org.springframework.boot.context.logging.ClasspathLoggingApplicationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
,org.springframework.context.event.GenericApplicationListener
,org.springframework.core.Ordered
public final class ClasspathLoggingApplicationListener extends Object implements org.springframework.context.event.GenericApplicationListener
ASmartApplicationListener
that reacts toenvironment prepared events
and tofailed events
by logging the classpath of the thread context class loader (TCCL) atDEBUG
level.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description ClasspathLoggingApplicationListener()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(org.springframework.context.ApplicationEvent event)
boolean
supportsEventType(org.springframework.core.ResolvableType resolvableType)
Constructor Detail
ClasspathLoggingApplicationListener
public ClasspathLoggingApplicationListener()
Method Detail
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.context.event.GenericApplicationListener
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
supportsEventType
public boolean supportsEventType(org.springframework.core.ResolvableType resolvableType)
- Specified by:
supportsEventType
in interfaceorg.springframework.context.event.GenericApplicationListener