- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.boot.SpringApplicationInitializer, org.springframework.context.ApplicationContextInitializer, org.springframework.context.EnvironmentAware
public class CommandLinePropertySourceOverridingInitializer<T extends CommonOptions>
extends java.lang.Object
implements org.springframework.context.EnvironmentAware, org.springframework.boot.SpringApplicationInitializer, org.springframework.context.ApplicationContextInitializer
An initializer that will parse command line options and also replace the default boot commandline
PropertySource
with those values. This turns out to be the most elegant solution if we want to keep the
SpringApplicationBuilder
code clean.
- Author:
- Eric Bottard