public DefaultContainer(Map<String, Object> map) {
		System.out.println("----------开始初始化容器---------");
		// 这个默认工厂的读取应该来自配置文件
		// 如果无自定义信息，自动加载默认的工厂实现
		System.out.println("----------开始初始化容器内工厂---------");
		factory = (AbstractBeanFactory) ReflectionUtil.getInstance(map
				.get(factory) == null ? "com.ioc.factory.DefaultBeanFactory"
				: map.get("factory").toString());
		String resource = map.get("resource") == null ? "com.ioc.bean" : map
				.get("resource").toString();
		String cacheContext = map.get("cacheContext") == null ? "com.ioc.data.DefaultBeanCacheContext"
				: map.get("cacheContext").toString();
		String definitionContext = map.get("definitionContext") == null ? "com.ioc.data.DefaultBeanContext"
				: map.get("definitionContext").toString();
		String defaultHandler = map.get("defaultHandler") == null ? "com.ioc.handler.DefaultAnnotationHandler"
				: map.get("defaultHandler").toString();
		String customHandler = map.get("customHandler") == null ? null : map
				.get("customHandler").toString();
		System.out.println("resource"+resource);
		factory.registerBeanDefinition(resource, cacheContext,
				definitionContext, defaultHandler, customHandler);
		System.out.println("----------初始化容器内工厂成功！---------");
	    System.out.println("----------初始化容器成功！---------");

	}