[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Re: another newbie question: avoid constructor calls .. !initialize ?
|
Are you using Spring AOP (i.e. proxy-based AOP) or AspectJ (i.e. byte-code weaving based AOP)?
-Ramnivas
On Tue, Jul 13, 2010 at 5:20 PM, Stephen Boesch
<javadba@xxxxxxxxx> wrote:
I am getting a warning/error from my IDE that Spring does not support initialization pointcuts (among others) - only execution.
So is this error directly attributed to the Spring limitation? If so, here's what I want to do: instrument all public non-constructor methods of descendants of BaseDao class as well as BaseDao itself. Here is my attempt:
@Around(value = "!initialization(new(..)) && execution(public * *Dao.* (..)) && this(dao)", argNames = "thisJoinPoint, dao")
public Object aroundApplyStatisticsMethod (ProceedingJoinPoint thisJoinPoint, WaterfallORMDao dao)
throws Throwable {
...
I imagine it's a v common thing to want to instrument all public non-constructor methods. Help pls ;)
2010/7/13 Stephen Boesch
<javadba@xxxxxxxxx>
Pls correct my "humble" (read: "incorrect"..) attempt at having the pointcut avoid all constructors:
@Around(value = "!initialization(new(..)) && < other conditions ..>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users