Examples of XmlPortletApplicationContext


Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

 
  private ConfigurablePortletApplicationContext pac;
 
  public void setUp() throws Exception {
    MockPortletContext portletContext = new MockPortletContext();
    pac = new XmlPortletApplicationContext();
    pac.setPortletContext(portletContext);
    pac.setConfigLocations(new String[] {CONF});
    pac.refresh();
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

 
  private ConfigurablePortletApplicationContext pac;
 
  public void setUp() throws Exception {
    MockPortletContext portletContext = new MockPortletContext();
    pac = new XmlPortletApplicationContext();
    pac.setPortletContext(portletContext);
    pac.setConfigLocations(new String[] {CONF});
    pac.refresh();
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

 
  private ConfigurablePortletApplicationContext pac;
 
  public void setUp() throws Exception {
    MockPortletContext portletContext = new MockPortletContext();
    pac = new XmlPortletApplicationContext();
    pac.setPortletContext(portletContext);
    pac.setConfigLocations(new String[] {CONF});
    pac.refresh();
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

  private ConfigurablePortletApplicationContext pac;

  @Override
  public void setUp() throws Exception {
    MockPortletContext portletContext = new MockPortletContext();
    pac = new XmlPortletApplicationContext();
    pac.setPortletContext(portletContext);
    pac.setConfigLocations(new String[] {CONF});
    pac.refresh();
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

  private ConfigurablePortletApplicationContext pac;

  @Override
  public void setUp() throws Exception {
    MockPortletContext portletContext = new MockPortletContext();
    pac = new XmlPortletApplicationContext();
    pac.setPortletContext(portletContext);
    pac.setConfigLocations(new String[] {CONF});
    pac.refresh();
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

  private ConfigurablePortletApplicationContext pac;

  @Override
  public void setUp() throws Exception {
    MockPortletContext portletContext = new MockPortletContext();
    pac = new XmlPortletApplicationContext();
    pac.setPortletContext(portletContext);
    pac.setConfigLocations(new String[] {CONF});
    pac.refresh();
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

    assertEnvironmentAwareInvoked(ctx, prodEnv);
  }

  @Test
  public void xmlPortletApplicationContext() {
    AbstractRefreshablePortletApplicationContext ctx = new XmlPortletApplicationContext();
    ctx.setEnvironment(prodEnv);
    ctx.setConfigLocation("classpath:" + XML_PATH);
    ctx.refresh();

    assertHasEnvironment(ctx, prodEnv);
    assertEnvironmentBeanRegistered(ctx);
    assertEnvironmentAwareInvoked(ctx, prodEnv);
    assertThat(ctx.containsBean(DEV_BEAN_NAME), is(false));
    assertThat(ctx.containsBean(PROD_BEAN_NAME), is(true));
  }
View Full Code Here

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext

    {
        applicationContext = PortletApplicationContextUtils.getWebApplicationContext(config.getPortletContext());

        if (config.getInitParameter(CONTEXT_CONFIG_LOCATION_PARAMETER) != null)
        {
            XmlPortletApplicationContext context = new XmlPortletApplicationContext();
            context.setParent(applicationContext);
            context.setConfigLocation(config.getInitParameter(CONTEXT_CONFIG_LOCATION_PARAMETER));
            context.setPortletConfig(config);
            context.setPortletContext(config.getPortletContext());
            context.refresh();

            applicationContext = context;
        }

        if (config.getInitParameter(SYSTEM_MESSAGES_BEAN_NAME_PARAMETER) != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.