diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java index 58091101fad..ae6d2e5dfc0 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java @@ -98,7 +98,8 @@ import org.springframework.stereotype.Component; *
* @Configuration
* public class AppConfig {
diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java
index d41e0b46452..4cb749d766e 100644
--- a/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java
+++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java
@@ -49,10 +49,10 @@ import java.lang.annotation.Target;
* }
* }
*
- * Notice that the {@code Environment} object is @{@link Autowired} into the
- * configuration class and then used when populating the {@code TestBean}
- * object. Given the configuration above, a call to {@code testBean.getName()} will
- * return "myTestBean".
+ * Notice that the {@code Environment} object is @{@link
+ * org.springframework.beans.factory.annotation.Autowired Autowired} into the
+ * configuration class and then used when populating the {@code TestBean} object. Given
+ * the configuration above, a call to {@code testBean.getName()} will return "myTestBean".
*
* {@code PropertySource} objects are not typically used in isolation, but rather through a - * {@link PropertySources} object, which aggregates property sources and in conjunction with - * a {@link PropertyResolver} implementation that can perform precedence-based searches across - * the set of {@code PropertySources}. + *
{@code PropertySource} objects are not typically used in isolation, but rather + * through a {@link PropertySources} object, which aggregates property sources and in + * conjunction with a {@link PropertyResolver} implementation that can perform + * precedence-based searches across the set of {@code PropertySources}. * - *
{@code PropertySource} identity is determined not based on the content of encapsulated - * properties, but rather based on the {@link #getName() name} of the {@code PropertySource} - * alone. This is useful for manipulating {@code PropertySource} objects when in collection - * contexts. See operations in {@link MutablePropertySources} as well as the - * {@link #named(String)} and {@link #toString()} methods for details. + *
{@code PropertySource} identity is determined not based on the content of + * encapsulated properties, but rather based on the {@link #getName() name} of the + * {@code PropertySource} alone. This is useful for manipulating {@code PropertySource} + * objects when in collection contexts. See operations in {@link MutablePropertySources} + * as well as the {@link #named(String)} and {@link #toString()} methods for details. + * + *
Note that when working with @{@link
+ * org.springframework.context.annotation.Configuration Configuration} classes that
+ * the @{@link org.springframework.context.annotation.PropertySource PropertySource}
+ * annotation provides a convenient and declarative way of adding property sources to the
+ * enclosing {@code Environment}.
*
* @author Chris Beams
* @since 3.1
@@ -44,6 +51,7 @@ import org.springframework.util.Assert;
* @see PropertyResolver
* @see PropertySourcesPropertyResolver
* @see MutablePropertySources
+ * @see org.springframework.context.annotation.PropertySource
*/
public abstract class PropertySource Properties present in {@value #SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME} will
* take precedence over those in {@value #SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME}.
+ * @see AbstractEnvironment#customizePropertySources(MutablePropertySources)
* @see #getSystemProperties()
* @see #getSystemEnvironment()
*/
diff --git a/org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/context/StandardPortletEnvironment.java b/org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/context/StandardPortletEnvironment.java
index c4f241bc113..a30bf09c685 100644
--- a/org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/context/StandardPortletEnvironment.java
+++ b/org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/context/StandardPortletEnvironment.java
@@ -68,6 +68,7 @@ public class StandardPortletEnvironment extends StandardEnvironment {
* initialized} once the actual {@link PortletConfig}, {@link PortletContext}, and
* {@link ServletContext} objects are available.
* @see StandardEnvironment#customizePropertySources
+ * @see org.springframework.core.env.AbstractEnvironment#customizePropertySources
* @see PortletConfigPropertySource
* @see PortletContextPropertySource
* @see AbstractRefreshablePortletApplicationContext#initPropertySources
diff --git a/org.springframework.web/src/main/java/org/springframework/web/context/support/StandardServletEnvironment.java b/org.springframework.web/src/main/java/org/springframework/web/context/support/StandardServletEnvironment.java
index c23d62ec237..534c728af63 100644
--- a/org.springframework.web/src/main/java/org/springframework/web/context/support/StandardServletEnvironment.java
+++ b/org.springframework.web/src/main/java/org/springframework/web/context/support/StandardServletEnvironment.java
@@ -77,6 +77,7 @@ public class StandardServletEnvironment extends StandardEnvironment {
* servlet property sources, but higher than system properties and environment
* variables.
* @see StandardEnvironment#customizePropertySources
+ * @see org.springframework.core.env.AbstractEnvironment#customizePropertySources
* @see ServletConfigPropertySource
* @see ServletContextPropertySource
* @see org.springframework.jndi.JndiPropertySource