<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">

    <!-- Referenced by main application context configuration file -->

    <description>
        The Northwind web layer definitions
    </description>

    <object name="CustomerEditController" type="NHibernateCustomerEditController" scope="session">
      <constructor-arg name="sessionFactory" ref="NHibernateSessionFactory"/>
    </object>
  
    <object type="Default.aspx">
        <property name="FulfillmentService" ref="FulfillmentService" />
        <property name="CustomerDao" ref="CustomerDao" />
    </object>

    <object name="CustomerEditPage" abstract="true">
        <property name="CustomerEditController" ref="CustomerEditController" />
    </object>
  
    <object type="CustomerList.aspx" parent="CustomerEditPage">
        <property name="CustomerDao" ref="CustomerDao" />
        <property name="Results">
            <dictionary>
                <entry key="EditCustomer" value="redirect:CustomerEditor.aspx" />
              <entry key="ViewOrders" value="redirect:CustomerOrders.aspx" />
            </dictionary>
        </property>
    </object>

    <object type="CustomerEditor.aspx" parent="CustomerEditPage">
        <property name="CustomerDao" ref="CustomerDao" />
    </object>

    <object type="CustomerOrders.aspx" parent="CustomerEditPage" />
  
</objects>
