Back Forum Reply New

Spring AOP / interfaces / abstract classes

Hello all,i was wondering if i can use Spring AOP when i have to intercept a method which is on an Abstract class and not on the interface....

anyone could help?

thanks and regardsmarco


Originally Posted by MmarcoMHello all,i was wondering if i can use Spring AOP when i have to intercept a method which is on an Abstract class and not on the interface....

anyone could help?

thanks and regardsmarco

you can just use a + sign in your pointcut to pick up the base class or any subclass, something likeCode:
execution(* * com.xxx.AbstractBaseClass+.*(*)Look also:

7.5.3. JDK- and CGLIB-based proxies
sp...fb-proxy-types

7.5.5. Proxying classes
sp...proxying-class

6.6. Proxying mechanisms
sp...l#aop-proxying
¥
Back Forum Reply New