|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.env.AbstractEnvironment org.springframework.core.env.StandardEnvironment org.springframework.web.portlet.context.StandardPortletEnvironment
public class StandardPortletEnvironment
Environment
implementation to be used by Servlet
-based web
applications. All Portlet-related ApplicationContext
classes initialize an instance
by default.
Contributes ServletContext
, PortletContext
, PortletConfig
and JNDI-based PropertySource
instances. See the
customizePropertySources(org.springframework.core.env.MutablePropertySources)
method for details.
StandardEnvironment
,
StandardServletEnvironment
Field Summary | |
---|---|
static String |
PORTLET_CONFIG_PROPERTY_SOURCE_NAME
Portlet config init parameters property source name: "portletConfigInitParams" |
static String |
PORTLET_CONTEXT_PROPERTY_SOURCE_NAME
Portlet context init parameters property source name: "portletContextInitParams" |
Fields inherited from class org.springframework.core.env.StandardEnvironment |
---|
SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME |
Fields inherited from class org.springframework.core.env.AbstractEnvironment |
---|
ACTIVE_PROFILES_PROPERTY_NAME, DEFAULT_PROFILES_PROPERTY_NAME, logger, RESERVED_DEFAULT_PROFILE_NAME |
Constructor Summary | |
---|---|
StandardPortletEnvironment()
|
Method Summary | |
---|---|
protected void |
customizePropertySources(MutablePropertySources propertySources)
Customize the set of property sources with those contributed by superclasses as well as those appropriate for standard portlet-based environments: "portletConfigInitParams" "portletContextInitParams" "servletContextInitParams" "jndiProperties" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PORTLET_CONTEXT_PROPERTY_SOURCE_NAME
public static final String PORTLET_CONFIG_PROPERTY_SOURCE_NAME
Constructor Detail |
---|
public StandardPortletEnvironment()
Method Detail |
---|
protected void customizePropertySources(MutablePropertySources propertySources)
Properties present in "portletConfigInitParams" will take precedence over those in "portletContextInitParams", which takes precedence over those in "servletContextInitParams" and so on.
Properties in any of the above will take precedence over system properties and
environment variables contributed by the StandardEnvironment
superclass.
The property sources are added as stubs for now, and will be
fully
initialized once the actual PortletConfig
, PortletContext
, and
ServletContext
objects are available.
customizePropertySources
in class StandardEnvironment
StandardEnvironment.customizePropertySources(org.springframework.core.env.MutablePropertySources)
,
AbstractEnvironment.customizePropertySources(org.springframework.core.env.MutablePropertySources)
,
PortletConfigPropertySource
,
PortletContextPropertySource
,
AbstractApplicationContext.initPropertySources()
,
PortletApplicationContextUtils.initPortletPropertySources(org.springframework.core.env.MutablePropertySources, javax.servlet.ServletContext, javax.portlet.PortletContext, javax.portlet.PortletConfig)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |