Package org.springframework.boot.context
Class ConfigurationWarningsApplicationContextInitializer
java.lang.Object
org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer
- All Implemented Interfaces:
org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
public class ConfigurationWarningsApplicationContextInitializer
extends Object
implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
ApplicationContextInitializer
to report warnings for common misconfiguration
mistakes.- Since:
- 1.2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
A single check that can be applied.protected static class
ConfigurationWarningsApplicationContextInitializer.Check
for@ComponentScan
on problematic package.protected static final class
BeanDefinitionRegistryPostProcessor
to report warnings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the checks that should be applied.void
initialize
(org.springframework.context.ConfigurableApplicationContext context)
-
Constructor Details
-
ConfigurationWarningsApplicationContextInitializer
public ConfigurationWarningsApplicationContextInitializer()
-
-
Method Details
-
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext context) - Specified by:
initialize
in interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
-
getChecks
Returns the checks that should be applied.- Returns:
- the checks to apply
-