/** * {@inheritDoc} * <p>Replace {@code Portlet}- and {@code Servlet}-related property sources. */ @Override protected void initPropertySources() { PortletApplicationContextUtils.initPortletPropertySources(getEnvironment().getPropertySources(), this.servletContext, this.portletContext, this.portletConfig); }
/** * Replace any {@linkplain * org.springframework.core.env.PropertySource.StubPropertySource stub property source} * instances acting as placeholders with real portlet context/config property sources * using the given parameters. * @param servletContext the {@link ServletContext} (may be {@code null}) * @param portletContext the {@link PortletContext} (may not be {@code null}) * @param portletConfig the {@link PortletConfig} ({@code null} if not available) * @see org.springframework.web.portlet.context.PortletApplicationContextUtils#initPortletPropertySources( * org.springframework.core.env.MutablePropertySources, ServletContext, PortletContext, PortletConfig) */ public void initPropertySources(ServletContext servletContext, PortletContext portletContext, PortletConfig portletConfig) { PortletApplicationContextUtils.initPortletPropertySources(getPropertySources(), servletContext, portletContext, portletConfig); }
/** * {@inheritDoc} * <p>Replace {@code Portlet}- and {@code Servlet}-related property sources. */ @Override protected void initPropertySources() { super.initPropertySources(); PortletApplicationContextUtils.initPortletPropertySources( this.getEnvironment().getPropertySources(), this.servletContext, this.portletContext, this.portletConfig); }