|
|
|
@ -32,16 +32,16 @@ import org.springframework.web.context.support.StandardServletEnvironment; |
|
|
|
* applications. All Portlet-related {@code ApplicationContext} classes initialize an instance |
|
|
|
* applications. All Portlet-related {@code ApplicationContext} classes initialize an instance |
|
|
|
* by default. |
|
|
|
* by default. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>Contributes {@code ServletContext}-, {@code PortletContext}-, and {@code PortletConfig}-based |
|
|
|
* <p>Contributes {@code ServletContext}-, {@code PortletContext}-, and |
|
|
|
* {@link PropertySource} instances. See the {@link #DefaultPortletEnvironment()} constructor |
|
|
|
* {@code PortletConfig}-based {@link PropertySource} instances. See the |
|
|
|
* for details. |
|
|
|
* {@link #customizePropertySources} method for details. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Chris Beams |
|
|
|
* @author Chris Beams |
|
|
|
* @since 3.1 |
|
|
|
* @since 3.1 |
|
|
|
* @see StandardEnvironment |
|
|
|
* @see StandardEnvironment |
|
|
|
* @see StandardServletEnvironment |
|
|
|
* @see StandardServletEnvironment |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class DefaultPortletEnvironment extends StandardEnvironment { |
|
|
|
public class StandardPortletEnvironment extends StandardEnvironment { |
|
|
|
|
|
|
|
|
|
|
|
/** Portlet context init parameters property source name: {@value} */ |
|
|
|
/** Portlet context init parameters property source name: {@value} */ |
|
|
|
public static final String PORTLET_CONTEXT_PROPERTY_SOURCE_NAME = "portletContextInitParams"; |
|
|
|
public static final String PORTLET_CONTEXT_PROPERTY_SOURCE_NAME = "portletContextInitParams"; |
|
|
|
@ -59,14 +59,14 @@ public class DefaultPortletEnvironment extends StandardEnvironment { |
|
|
|
* </ul> |
|
|
|
* </ul> |
|
|
|
* <p>Properties present in {@value #PORTLET_CONFIG_PROPERTY_SOURCE_NAME} will |
|
|
|
* <p>Properties present in {@value #PORTLET_CONFIG_PROPERTY_SOURCE_NAME} will |
|
|
|
* take precedence over those in {@value #PORTLET_CONTEXT_PROPERTY_SOURCE_NAME}, |
|
|
|
* take precedence over those in {@value #PORTLET_CONTEXT_PROPERTY_SOURCE_NAME}, |
|
|
|
* which takes precedence over those in |
|
|
|
* which takes precedence over those in {@linkplain |
|
|
|
* {@linkplain StandardServletEnvironment#SERVLET_CONTEXT_PROPERTY_SOURCE_NAME "servletContextInitParams"}. |
|
|
|
* StandardServletEnvironment#SERVLET_CONTEXT_PROPERTY_SOURCE_NAME "servletContextInitParams"}. |
|
|
|
* <p>Properties in any of the above will take precedence over system properties and environment |
|
|
|
* <p>Properties in any of the above will take precedence over system properties and |
|
|
|
* variables contributed by the {@link StandardEnvironment} superclass. |
|
|
|
* environment variables contributed by the {@link StandardEnvironment} superclass. |
|
|
|
* <p>The property sources are added as stubs for now, and will be |
|
|
|
* <p>The property sources are added as stubs for now, and will be |
|
|
|
* {@linkplain PortletApplicationContextUtils#initPortletPropertySources fully initialized} |
|
|
|
* {@linkplain PortletApplicationContextUtils#initPortletPropertySources fully |
|
|
|
* once the actual {@link PortletConfig}, {@link PortletContext}, and {@link ServletContext} |
|
|
|
* initialized} once the actual {@link PortletConfig}, {@link PortletContext}, and |
|
|
|
* objects are available. |
|
|
|
* {@link ServletContext} objects are available. |
|
|
|
* @see StandardEnvironment#customizePropertySources |
|
|
|
* @see StandardEnvironment#customizePropertySources |
|
|
|
* @see PortletConfigPropertySource |
|
|
|
* @see PortletConfigPropertySource |
|
|
|
* @see PortletContextPropertySource |
|
|
|
* @see PortletContextPropertySource |