11/*
2- * Copyright 2002-2011 the original author or authors.
2+ * Copyright 2002-2012 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
5555 * propertySources.replace(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, mockEnvVars);
5656 * </pre>
5757 *
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}.
6566 *
6667 *
6768 * @author Chris Beams
@@ -78,7 +79,6 @@ public interface ConfigurableEnvironment extends Environment, ConfigurableProper
7879 * <p>Any existing active profiles will be replaced with the given arguments; call
7980 * with zero arguments to clear the current set of active profiles. Use
8081 * {@link #addActiveProfile} to add a profile while preserving the existing set.
81- *
8282 * @see #addActiveProfile
8383 * @see #setDefaultProfiles
8484 * @see org.springframework.context.annotation.Profile
@@ -123,12 +123,10 @@ public interface ConfigurableEnvironment extends Environment, ConfigurableProper
123123 * Return the value of {@link System#getenv()} if allowed by the current
124124 * {@link SecurityManager}, otherwise return a map implementation that will attempt
125125 * to access individual keys using calls to {@link System#getenv(String)}.
126- *
127126 * <p>Note that most {@link Environment} implementations will include this system
128127 * environment map as a default {@link PropertySource} to be searched. Therefore, it
129128 * is recommended that this method not be used directly unless bypassing other
130129 * property sources is expressly intended.
131- *
132130 * <p>Calls to {@link Map#get(Object)} on the Map returned will never throw
133131 * {@link IllegalAccessException}; in cases where the SecurityManager forbids access
134132 * 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
140138 * Return the value of {@link System#getProperties()} if allowed by the current
141139 * {@link SecurityManager}, otherwise return a map implementation that will attempt
142140 * to access individual keys using calls to {@link System#getProperty(String)}.
143- *
144141 * <p>Note that most {@code Environment} implementations will include this system
145142 * properties map as a default {@link PropertySource} to be searched. Therefore, it is
146143 * recommended that this method not be used directly unless bypassing other property
147144 * sources is expressly intended.
148- *
149145 * <p>Calls to {@link Map#get(Object)} on the Map returned will never throw
150146 * {@link IllegalAccessException}; in cases where the SecurityManager forbids access
151147 * to a property, {@code null} will be returned and an INFO-level log message will be
0 commit comments