public class Appmon4jDumper extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
ApplicationListener which dumps the content of the InApplicationMonitor to log4j when the
context is closed.| Modifier and Type | Field and Description |
|---|---|
private InApplicationMonitor |
inApplicationMonitor |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
Appmon4jDumper(InApplicationMonitor inApplicationMonitor) |
| Modifier and Type | Method and Description |
|---|---|
private String |
dumpReporting(HierarchyReportVisitor hierarchyReportVisitor) |
void |
onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) |
private void |
removeNewLineCharacterAtTheEnd(StringBuilder builder) |
private static final org.slf4j.Logger LOGGER
private final InApplicationMonitor inApplicationMonitor
public Appmon4jDumper(InApplicationMonitor inApplicationMonitor)
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>private String dumpReporting(HierarchyReportVisitor hierarchyReportVisitor)
private void removeNewLineCharacterAtTheEnd(StringBuilder builder)
Copyright © 2014 Immobilien Scout GmbH. All Rights Reserved.