Examples of GenericXmlApplicationContext


Examples of org.springframework.context.support.GenericXmlApplicationContext

    assertThat(v1("classpath:org/springframework/issues/PropertySourcesPlaceholderConfigurerTrue-context.xml"), equalTo("v1-local"));
  }

  public String v1(String resourceLocation) {

    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load(resourceLocation);
    ctx.refresh();

    try {
      return ctx.getBean(TestBean.class).getName();
    }
    finally {
      ctx.close();
    }
  }
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.