public final class ClasspathLoggingApplicationListener extends Object implements SmartApplicationListener
SmartApplicationListener
that reacts to start
events
by logging the classpath of the thread context class loader (TCCL) at
DEBUG
level and to error events
by logging the
TCCL's classpath at INFO
level.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ClasspathLoggingApplicationListener() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
onApplicationEvent(ApplicationEvent event) |
boolean |
supportsEventType(Class<? extends ApplicationEvent> type) |
boolean |
supportsSourceType(Class<?> sourceType) |
public void onApplicationEvent(ApplicationEvent event)
onApplicationEvent
in interface ApplicationListener<ApplicationEvent>
public boolean supportsEventType(Class<? extends ApplicationEvent> type)
supportsEventType
in interface SmartApplicationListener
public boolean supportsSourceType(Class<?> sourceType)
supportsSourceType
in interface SmartApplicationListener
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.