Package org.beangle.spring.reconfig

Source Code of org.beangle.spring.reconfig.SpringXmlParserTest

/* Copyright c 2005-2012.
* Licensed under GNU  LESSER General Public License, Version 3.
* http://www.gnu.org/licenses
*/
package org.beangle.spring.reconfig;

import java.util.List;

import org.beangle.spring.config.BeanDefinitionReader;
import org.beangle.spring.config.ReconfigBeanDefinitionHolder;
import org.springframework.core.io.ClassPathResource;
import org.testng.annotations.Test;

@Test
public class SpringXmlParserTest {

  public void test() throws Exception {
    parser("context.xml");
  }

  private void parser(String path) throws Exception {
    List<ReconfigBeanDefinitionHolder> holders = new BeanDefinitionReader().load(new ClassPathResource(
        path));
    for (ReconfigBeanDefinitionHolder holder : holders) {
      System.out.println(holder);
    }
  }
}
TOP

Related Classes of org.beangle.spring.reconfig.SpringXmlParserTest

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.