Skip to content

Commit 0fc89dd

Browse files
committed
Make ConfigFileApplicationListener consts public
Update ConfigFileApplicationListener to make some of the static final constants public. Fixes spring-projectsgh-2253
1 parent 64217aa commit 0fc89dd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,25 @@
9191
public class ConfigFileApplicationListener implements
9292
ApplicationListener<ApplicationEvent>, Ordered {
9393

94+
private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class);
95+
9496
private static final String DEFAULT_PROPERTIES = "defaultProperties";
9597

96-
private static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active";
98+
// Note the order is from least to most specific (last one wins)
99+
private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/";
97100

98-
private static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include";
101+
private static final String DEFAULT_NAMES = "application";
99102

100-
private static final String CONFIG_NAME_PROPERTY = "spring.config.name";
103+
public static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active";
101104

102-
private static final String CONFIG_LOCATION_PROPERTY = "spring.config.location";
105+
public static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include";
103106

104-
// Note the order is from least to most specific (last one wins)
105-
private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/";
107+
public static final String CONFIG_NAME_PROPERTY = "spring.config.name";
106108

107-
private static final String DEFAULT_NAMES = "application";
109+
public static final String CONFIG_LOCATION_PROPERTY = "spring.config.location";
108110

109111
public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;
110112

111-
private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class);
112-
113113
private String searchLocations;
114114

115115
private String names;

0 commit comments

Comments
 (0)