package com.springbank.example.beanfacotryutils;

import java.util.Map;

import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author wangxin
 * @contact 408657544@qq.com
 * @date Jul 15, 2017 
 * @Description: 测试BeanOfTypeIncludingAncestors
 */
public class BeanOfTypeIncludingAncestorsTest {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("com/springbank/test/spring/beanfacotryutils/applicationContext.xml");
		Map map = BeanFactoryUtils.beansOfTypeIncludingAncestors(context, Child.class, false, false);
		System.out.println(map);
	}
}
