Package org.springframework.web.portlet.context

Examples of org.springframework.web.portlet.context.XmlPortletApplicationContext.refresh()


  @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));
View Full Code Here


            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.