其他分享
首页 > 其他分享> > sourcecode: createBootstrapContext()

sourcecode: createBootstrapContext()

作者:互联网

private DefaultBootstrapContext createBootstrapContext() {
    DefaultBootstrapContext bootstrapContext = new DefaultBootstrapContext();//创建 DefaultBootstrapContext实例 ->
    this.bootstrapRegistryInitializers.forEach((initializer) -> { //todo
        initializer.initialize(bootstrapContext);
    });
    return bootstrapContext;
}

DefaultBootstrapContext  bootstrapContext 属性:

Map<Class<?>, InstanceSupplier<?>> instanceSuppliers = new HashMap(); //存储类对应的实例生成方式? todo
Map<Class<?>, Object> instances = new HashMap();//存储类对应的实例?todo
ApplicationEventMulticaster events = new SimpleApplicationEventMulticaster();//事件广播? todo

标签:HashMap,createBootstrapContext,bootstrapContext,实例,sourcecode,new,todo,DefaultBo
来源: https://blog.csdn.net/qq_42126421/article/details/120911511