/** * Register a bean in the backing bean factory, typically to support a flow execution test. For test scenarios, if * the bean is a service invoked by a bean invoking action it is often a stub or dynamic mock implementation of the * service's business interface. * @param beanName the bean name * @param bean the singleton instance */ public void registerBean(String beanName, Object bean) { ((ConfigurableApplicationContext) getApplicationContext()).getBeanFactory().registerSingleton(beanName, bean); }
/** * Register a bean in the backing bean factory, typically to support a flow execution test. For test scenarios, if * the bean is a service invoked by a bean invoking action it is often a stub or dynamic mock implementation of the * service's business interface. * @param beanName the bean name * @param bean the singleton instance */ public void registerBean(String beanName, Object bean) { ((ConfigurableApplicationContext) getApplicationContext()).getBeanFactory().registerSingleton(beanName, bean); }
/** * Register a bean in the backing bean factory, typically to support a flow execution test. For test scenarios, if * the bean is a service invoked by a bean invoking action it is often a stub or dynamic mock implementation of the * service's business interface. * @param beanName the bean name * @param bean the singleton instance */ public void registerBean(String beanName, Object bean) { ((ConfigurableApplicationContext) getApplicationContext()).getBeanFactory().registerSingleton(beanName, bean); }