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 <[email protected]>
> Pls correct my "humble" (read: "incorrect"..) attempt at having the
> pointcut avoid all constructors:
>
> @Around(value = "*!initialization(new(..))* && < other conditions ..>
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users