- All Implemented Interfaces:
- java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>
public class CommandLinePropertySourceOverridingListener<T extends CommonOptions>
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>
An ApplicationListener 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, Luke Taylor