Updated build to use new BeanFactory behavior.

This commit is contained in:
Ben Hale
2007-09-11 14:43:10 +00:00
parent dd108f5c6e
commit 6e63a74be4
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ import org.xml.sax.SAXException;
* <p>
* This builder will setup a flow-local bean factory for the flow being constructed. That flow-local bean factory will
* be populated with XML bean definitions contained in files referenced using the "import" element. The flow-local bean
* factory will use the bean factory defing this flow builder as a parent. As such, the flow can access artifacts in
* factory will use the bean factory defining this flow builder as a parent. As such, the flow can access artifacts in
* either its flow-local bean factory or in the parent bean factory hierarchy, e.g. the bean factory of the dispatcher.
*
* @author Erwin Vervaet

View File

@@ -75,7 +75,7 @@ public class XmlFlowBuilderNestingTests extends TestCase {
assertSame(testService, action1.getTestService());
assertSame(action1, testFlow2BeanFactory.getBean("action1"));
assertSame(parentBeanFactory, ((HierarchicalBeanFactory) testFlow2BeanFactory).getParentBeanFactory());
assertEquals(2, BeanFactoryUtils.countBeansIncludingAncestors(((ListableBeanFactory) testFlow2BeanFactory)));
assertEquals(4, BeanFactoryUtils.countBeansIncludingAncestors((ListableBeanFactory) testFlow2BeanFactory));
Flow subFlow1 = ((SubflowState) flow.getState("subFlowState1")).getSubflow();
assertNotSame(flow, subFlow1);