pac.setId(ConfigurablePortletApplicationContext.APPLICATION_CONTEXT_ID_PREFIX + portletContextName + "." + getPortletName()); pac.setId(ConfigurablePortletApplicationContext.APPLICATION_CONTEXT_ID_PREFIX + getPortletName()); pac.setParent(parent); pac.setPortletContext(getPortletContext()); pac.setPortletConfig(getPortletConfig()); pac.setNamespace(getNamespace()); pac.setConfigLocation(getContextConfigLocation()); pac.addApplicationListener(new SourceFilteringListener(pac, this)); pac.refresh();
pac.setId(ConfigurablePortletApplicationContext.APPLICATION_CONTEXT_ID_PREFIX + portletContextName + "." + getPortletName()); pac.setId(ConfigurablePortletApplicationContext.APPLICATION_CONTEXT_ID_PREFIX + getPortletName()); pac.setEnvironment(getEnvironment()); pac.setParent(parent); pac.setPortletContext(getPortletContext()); pac.setPortletConfig(getPortletConfig()); pac.setNamespace(getNamespace()); pac.setConfigLocation(getContextConfigLocation()); pac.addApplicationListener(new SourceFilteringListener(pac, this)); ConfigurableEnvironment env = pac.getEnvironment(); if (env instanceof StandardPortletEnvironment) { ((StandardPortletEnvironment) env).initPropertySources(pac.getServletContext(), getPortletContext(), getPortletConfig()); pac.refresh();