public class AutoConfigurationReportLoggingInitializer extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, SpringApplicationErrorHandler, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
ApplicationContextInitializer
and SpringApplicationErrorHandler
that
writes the AutoConfigurationReport
to the log. Reports are logged at the
DEBUG
level unless there was a problem, in which case they are
the INFO
level is used.
This initializer is not intended to be shared across multiple application context instances.
Constructor and Description |
---|
AutoConfigurationReportLoggingInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
handleError(SpringApplication application,
org.springframework.context.ConfigurableApplicationContext applicationContext,
String[] args,
Throwable exception)
Handle an application startup error.
|
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
void |
logAutoConfigurationReport(boolean isCrashReport) |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
public AutoConfigurationReportLoggingInitializer()
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize
in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
public void handleError(SpringApplication application, org.springframework.context.ConfigurableApplicationContext applicationContext, String[] args, Throwable exception)
SpringApplicationErrorHandler
handleError
in interface SpringApplicationErrorHandler
application
- the spring application.applicationContext
- the spring context (if one was created, may be
null
)args
- the run argumentsexception
- an exception thrown during startup (or null if none)public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public void logAutoConfigurationReport(boolean isCrashReport)
Copyright © 2013. All rights reserved.