List of usage examples for org.springframework.context ApplicationContextInitializer interface-usage
From source file org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer.java
/**
* {@link ApplicationContextInitializer} that writes the {@link ConditionEvaluationReport}
* to the log. Reports are logged at the {@link LogLevel#DEBUG DEBUG} level unless there
* was a problem, in which case they are the {@link LogLevel#INFO INFO} level is used.
* <p>
* This initializer is not intended to be shared across multiple application context
From source file org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener.java
/**
* {@link ApplicationContextInitializer} that writes the {@link ConditionEvaluationReport}
* to the log. Reports are logged at the {@link LogLevel#DEBUG DEBUG} level. A crash
* report triggers an info output suggesting the user runs again with debug enabled to
* display the report.
* <p>
From source file org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer.java
/**
* {@link ApplicationContextInitializer} to report warnings for common misconfiguration
* mistakes.
*
* @author Phillip Webb
* @since 1.2.0
From source file org.springframework.boot.context.initializer.FileEncodingApplicationContextInitializer.java
/**
* An {@link ApplicationContextInitializer} halts application startup if the system file
* encoding does not match an expected value set in the environment. By default has no
* effect, but if you set <code>spring.mandatory_file_encoding</code> (or some camelCase
* or UPPERCASE variant of that) to the name of a character encoding (e.g. "UTF-8") then
* this initializer throws an exception when the <code>file.encoding</code> System
From source file org.springframework.boot.context.initializer.LoggingApplicationContextInitializer.java
/**
* An {@link ApplicationContextInitializer} that configures a logging framework depending
* on what it finds on the classpath and in the {@link Environment}. If the environment
* contains a property <code>logging.config</code> then that will be used to initialize
* the logging system, otherwise a default location is used. The classpath is probed for
* log4j and logback and if those are present they will be reconfigured, otherwise vanilla
From source file org.springframework.boot.context.initializer.VcapApplicationContextInitializer.java
/**
* An {@link ApplicationContextInitializer} that knows where to find VCAP (a.k.a. Cloud
* Foundry) meta data in the existing environment. It parses out the VCAP_APPLICATION and
* VCAP_SERVICES meta data and dumps it in a form that is easily consumed by
* {@link Environment} users. If the app is running in Cloud Foundry then both meta data
* items are JSON objects encoded in OS environment variables. VCAP_APPLICATION is a
From source file org.springframework.cloud.bootstrap.config.ConfigServiceBootstrapConfiguration.java
/**
* @author Dave Syer
*
*/
@Configuration
@EnableConfigurationProperties
From source file org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.java
/**
* @author Dave Syer
*
*/
@Configuration
@EnableConfigurationProperties
From source file org.springframework.cloud.bootstrap.encrypt.EnvironmentDecryptApplicationInitializer.java
/**
* Decrypt properties from the environment and insert them with high priority so they
* override the encrypted values.
*
* @author Dave Syer
*
From source file org.springframework.cloud.bootstrap.encrypt.EnvironmentDecryptApplicationListener.java
/** * @author Dave Syer * */ public class EnvironmentDecryptApplicationListener implements ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {