public class

DefaultPortletEnvironment

extends DefaultEnvironment
java.lang.Object
   ↳ org.springframework.core.env.AbstractEnvironment
     ↳ org.springframework.core.env.DefaultEnvironment
       ↳ org.springframework.web.portlet.context.DefaultPortletEnvironment

Class Overview

Environment implementation to be used by Servlet-based web applications. All Portlet-related ApplicationContext classes initialize an instance by default.

Contributes ServletContext-, PortletContext-, and PortletConfig-based PropertySource instances. See the DefaultPortletEnvironment() constructor for details.

Summary

Constants
String PORTLET_CONFIG_PROPERTY_SOURCE_NAME Portlet config init parameters property source name: {@value }
String PORTLET_CONTEXT_PROPERTY_SOURCE_NAME Portlet context init parameters property source name: {@value }
[Expand]
Inherited Constants
From class org.springframework.core.env.DefaultEnvironment
From class org.springframework.core.env.AbstractEnvironment
[Expand]
Inherited Fields
From class org.springframework.core.env.AbstractEnvironment
Public Constructors
DefaultPortletEnvironment()
Create a new Environment populated with the property sources contributed by superclasses as well as:

Properties present in {@value #PORTLET_CONFIG_PROPERTY_SOURCE_NAME} will take precedence over those in {@value #PORTLET_CONTEXT_PROPERTY_SOURCE_NAME}, which takes precedence over those in .

[Expand]
Inherited Methods
From class org.springframework.core.env.AbstractEnvironment
From class java.lang.Object
From interface org.springframework.core.env.ConfigurableEnvironment
From interface org.springframework.core.env.ConfigurablePropertyResolver
From interface org.springframework.core.env.Environment
From interface org.springframework.core.env.PropertyResolver

Constants

public static final String PORTLET_CONFIG_PROPERTY_SOURCE_NAME

Portlet config init parameters property source name: {@value }

Constant Value: "portletConfigInitParams"

public static final String PORTLET_CONTEXT_PROPERTY_SOURCE_NAME

Portlet context init parameters property source name: {@value }

Constant Value: "portletContextInitParams"

Public Constructors

public DefaultPortletEnvironment ()

Create a new Environment populated with the property sources contributed by superclasses as well as:

Properties present in {@value #PORTLET_CONFIG_PROPERTY_SOURCE_NAME} will take precedence over those in {@value #PORTLET_CONTEXT_PROPERTY_SOURCE_NAME}, which takes precedence over those in . Properties in either will take precedence over system properties and environment variables.

The property sources are added as stubs for now, and will be fully initialized once the actual PortletConfig, PortletContext, and ServletContext objects are available.