<?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">
			<assemblies>
				<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
		<pages>
			<controls>
				<add tagPrefix="spring" namespace="Spring.Web.UI.Controls" assembly="Spring.Web"/>
			</controls>
		</pages>
		<!--
    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="HtmlCommentAppender" type="HtmlCommentAppenderModule"/>
			<!-- this custom module is only for DI demonstration purposes -->
		</httpModules>
		<httpHandlers>
			<add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
		</httpHandlers>
	</system.web>
	<!-- demonstrates how to configure IHttpModule instances -->
	<spring>
		<context>
			<resource uri="config://spring/objects"/>
		</context>
		<objects xmlns="http://www.springframework.net">
			<!-- configure our custom HttpModule -->
			<object name="HttpApplicationConfigurer" type="Spring.Context.Support.HttpApplicationConfigurer, Spring.Web">
				<property name="ModuleTemplates">
					<dictionary>
						<entry key="HtmlCommentAppender">
							<!-- this name must match the module name -->
							<object>
								<!-- select "view source" in your browser on any page to see the appended html comment -->
								<property name="AppendText" value="My configured comment!"/>
							</object>
						</entry>
					</dictionary>
				</property>
			</object>
		</objects>
	</spring>
</configuration>
