1
1
/*
2
- * Copyright 2002-2011 the original author or authors.
2
+ * Copyright 2002-2012 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
55
55
* propertySources.replace(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, mockEnvVars);
56
56
* </pre>
57
57
*
58
- * When an {@link Environment} is being used by an ApplicationContext, it is important
59
- * that any such PropertySource manipulations be performed <em>before</em> the context's
60
- * {@link org.springframework.context.support.AbstractApplicationContext#refresh()
61
- * refresh()} method is called. This ensures that all property sources are available
62
- * during the container bootstrap process, including use by
63
- * {@linkplain org.springframework.context.support.PropertySourcesPlaceholderConfigurer
64
- * property placeholder configurers}.
58
+ * When an {@link Environment} is being used by an {@code ApplicationContext}, it is
59
+ * important that any such {@code PropertySource} manipulations be performed
60
+ * <em>before</em> the context's {@link
61
+ * org.springframework.context.support.AbstractApplicationContext#refresh() refresh()}
62
+ * method is called. This ensures that all property sources are available during the
63
+ * container bootstrap process, including use by {@linkplain
64
+ * org.springframework.context.support.PropertySourcesPlaceholderConfigurer property
65
+ * placeholder configurers}.
65
66
*
66
67
*
67
68
* @author Chris Beams
@@ -78,7 +79,6 @@ public interface ConfigurableEnvironment extends Environment, ConfigurableProper
78
79
* <p>Any existing active profiles will be replaced with the given arguments; call
79
80
* with zero arguments to clear the current set of active profiles. Use
80
81
* {@link #addActiveProfile} to add a profile while preserving the existing set.
81
- *
82
82
* @see #addActiveProfile
83
83
* @see #setDefaultProfiles
84
84
* @see org.springframework.context.annotation.Profile
@@ -123,12 +123,10 @@ public interface ConfigurableEnvironment extends Environment, ConfigurableProper
123
123
* Return the value of {@link System#getenv()} if allowed by the current
124
124
* {@link SecurityManager}, otherwise return a map implementation that will attempt
125
125
* to access individual keys using calls to {@link System#getenv(String)}.
126
- *
127
126
* <p>Note that most {@link Environment} implementations will include this system
128
127
* environment map as a default {@link PropertySource} to be searched. Therefore, it
129
128
* is recommended that this method not be used directly unless bypassing other
130
129
* property sources is expressly intended.
131
- *
132
130
* <p>Calls to {@link Map#get(Object)} on the Map returned will never throw
133
131
* {@link IllegalAccessException}; in cases where the SecurityManager forbids access
134
132
* to a property, {@code null} will be returned and an INFO-level log message will be
@@ -140,12 +138,10 @@ public interface ConfigurableEnvironment extends Environment, ConfigurableProper
140
138
* Return the value of {@link System#getProperties()} if allowed by the current
141
139
* {@link SecurityManager}, otherwise return a map implementation that will attempt
142
140
* to access individual keys using calls to {@link System#getProperty(String)}.
143
- *
144
141
* <p>Note that most {@code Environment} implementations will include this system
145
142
* properties map as a default {@link PropertySource} to be searched. Therefore, it is
146
143
* recommended that this method not be used directly unless bypassing other property
147
144
* sources is expressly intended.
148
- *
149
145
* <p>Calls to {@link Map#get(Object)} on the Map returned will never throw
150
146
* {@link IllegalAccessException}; in cases where the SecurityManager forbids access
151
147
* to a property, {@code null} will be returned and an INFO-level log message will be
0 commit comments