Commit 0fc89ddb authored by Phillip Webb's avatar Phillip Webb

Make ConfigFileApplicationListener consts public

Update ConfigFileApplicationListener to make some of the static final
constants public.

Fixes gh-2253
parent 64217aa6
...@@ -91,25 +91,25 @@ import org.springframework.validation.BindException; ...@@ -91,25 +91,25 @@ import org.springframework.validation.BindException;
public class ConfigFileApplicationListener implements public class ConfigFileApplicationListener implements
ApplicationListener<ApplicationEvent>, Ordered { ApplicationListener<ApplicationEvent>, Ordered {
private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class);
private static final String DEFAULT_PROPERTIES = "defaultProperties"; private static final String DEFAULT_PROPERTIES = "defaultProperties";
private static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active"; // Note the order is from least to most specific (last one wins)
private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/";
private static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include"; private static final String DEFAULT_NAMES = "application";
private static final String CONFIG_NAME_PROPERTY = "spring.config.name"; public static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active";
private static final String CONFIG_LOCATION_PROPERTY = "spring.config.location"; public static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include";
// Note the order is from least to most specific (last one wins) public static final String CONFIG_NAME_PROPERTY = "spring.config.name";
private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/";
private static final String DEFAULT_NAMES = "application"; public static final String CONFIG_LOCATION_PROPERTY = "spring.config.location";
public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10; public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;
private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class);
private String searchLocations; private String searchLocations;
private String names; private String names;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment