// @AutoInject生效时:@SpringBeanByName 和 @SpringBeanByType bean注册
RegisterDynamicBean.dynamicRegisterBeanDefinition(beanFactory, testedClazz);
// 是否定义bean输入输出跟踪日志
boolean traceSpringBean = TracerModuleHelper.traceSpringBean();
Tracer tracer = AnnotationUtils.getClassLevelAnnotation(Tracer.class, testedClazz);
if ((tracer == null && traceSpringBean) || (tracer != null && tracer.spring())) {
SpringModuleHelper.addTracerBeanDefinition(beanFactory);
}
return beanFactory;
}