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
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceA single check that can be applied.protected static classConfigurationWarningsApplicationContextInitializer.Checkfor@ComponentScanon problematic package.protected static final classBeanDefinitionRegistryPostProcessorto report warnings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the checks that should be applied.voidinitialize(org.springframework.context.ConfigurableApplicationContext context)
-
Constructor Details
-
ConfigurationWarningsApplicationContextInitializer
public ConfigurationWarningsApplicationContextInitializer()
-
-
Method Details
-
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext context) - Specified by:
initializein interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
-
getChecks
Returns the checks that should be applied.- Returns:
- the checks to apply
-