Hi,
Sorry for the delay.
Just for information i work with asp MVC and i want to plug AOP on controler's method decorate.
Here My Interceptor:
I declare which decorator to watch
and the device class to use.
HTML Code:
<object id="MyInterceptor" type="Spring.Aop.Support.AttributeMatchMethodPointcutAdvisor, Spring.Aop">
<property name="Advice">
<object type="Samp.Utilities.MethodAdvice, Samp.Utilities" />
</property>
<property name="Attribute" value="Samp.Utilities.MethodAdviceAttribute, Samp.Utilities" />
</object>
the proxy to handle all controller with my interceptor
HTML Code:
<object type="Spring.Aop.Framework.AutoProxy.InheritanceBasedAopConfigurer, Spring.Aop">
<property name="ObjectNames">
<list>
<value>*Controller#*</value>
</list>
</property>
<property name="InterceptorNames">
<list>
<value>MyInterceptor</value>
</list>
</property>
</object>
For testing, if my Advice inherit of IMethodBeforeAdvice (no matter the order) it always fire his method (Before) and the AfterReturning method is not fire.
If I remove the IMethodBeforeAdvice interface. The IAfterReturningAdvice's method (AfterReturning) is fire.