Register Spring Beans to BeanFactory using registerSingleton