<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:aop="http://www.springframework.org/schema/aop"
      xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">

    <!-- CDS Aspect beans -->
    <bean id="logAndRethrowAspect" class="gov.va.med.cds.aspects.exception.LogAndRethrowAspect"/>
 
	  <!--  Configuration that does not require annotations -->
	  <aop:config>	  
	    <aop:aspect ref="logAndRethrowAspect">
		  <aop:pointcut id="executionOfValidateAccess"
		    expression="execution(* *..*.socket.server.handler.MllpAccessValidator.validateAccess(..))"/>
		  <aop:after-throwing throwing="cdsException" pointcut-ref="executionOfValidateAccess" method="doAfterThrowing"/>
        </aop:aspect>
	  </aop:config>
</beans>
