<?xml version="1.0"?>
<configuration>

    <configSections>
        <sectionGroup name="spring">
            <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>
            <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
        </sectionGroup>

        <sectionGroup name="common">
            <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
        </sectionGroup>

    </configSections>

    <!-- to see logging output in the attached debugger -->
    <common>
        <logging>
            <factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
                <arg key="Level" value="ALL" />
            </factoryAdapter>
        </logging>
    </common>

    <system.web>
        <compilation debug="true" />

        <!--
    The following needs to be configured in order to enable Spring.NET Web Framework features
-->
        <httpModules>
            <add name="SpringModule" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
            <add name="NUnitAspExModule" type="NUnitAspEx.AspTestExecutionModule, NUnitAspEx" />
        </httpModules>

        <httpHandlers>
            <add verb="*" path="*.oaspx" type="System.Web.UI.PageHandlerFactory"/>
            <add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
            <add verb="*" path="*.testmethod" type="NUnitAspEx.AspTestMethodHandler, NUnitAspEx" validate="false" />
        </httpHandlers>

    </system.web>

    <spring>
        <context>
            <resource uri="config://spring/objects"/>
        </context>
        <objects xmlns="http://www.springframework.net">

            <object type="Dummy.aspx"/>

            <object id="singletonObject" type="System.Object" />
            <object id="prototypeObject" type="System.Object" singleton="false" />
            <object id="requestScopedObject" type="System.Object" scope="request" />
            <object id="sessionScopedObject" type="System.Object" scope="session" />
            <object id="applicationScopedObject" type="System.Object" scope="application" />

        </objects>
    </spring>

</configuration>
