<?xml version="1.0" encoding="UTF-8"?>
<!--
	- DispatcherPortlet application context for PetPortal's pet portlet.
-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">

  <context:annotation-config/>

  <bean class="org.springframework.web.portlet.mvc.annotation.DefaultAnnotationHandlerMapping">
    <property name="interceptors">
      <!-- This interceptor forwards the mapping request parameter from an ActionRequest to be used as a render parameter. -->
      <bean class="org.springframework.web.portlet.handler.ParameterMappingInterceptor"/>
    </property>
  </bean>

  <bean class="org.springframework.samples.petportal.portlet.PetsController"/>

  <bean class="org.springframework.samples.petportal.portlet.PetHelpController"/>

  <bean class="org.springframework.samples.petportal.portlet.DateFormatController"/>

</beans>
