public class AutoConfigurationReportLoggingInitializer extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, SpringApplicationErrorHandler
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.
Modifier and Type | Class and Description |
---|---|
static class |
AutoConfigurationReportLoggingInitializer.AutoConfigurationReportLogger
Spring bean to actually perform the logging.
|
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) |
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)Copyright © 2013. All rights reserved.