Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Pointcut for JDK runtime packages/methods

Thanks Frank, that makes sense.


On Wed, Nov 21, 2012 at 12:54 AM, Brian Toal <brian.toal@xxxxxxxxx> wrote:
I have simple aspect setup with the following pointcut definition:

    @Pointcut("execution(* *(..))")
    public void executionPointCut() {
       
    }

In my test program I loop millions of time updating one key/value pair in a HashMap.  However I'm never seeing the Before/After methods for executionPointCut being entered for HashMap.put().

The Before/After methods are entered for a method that is called within my test program so I can confirm they are working for methods outside of java.util.*.

What do I need to do to get java.* executions picked up?

Why isn't my @Pointcut definition above good enough?

My aop.xml file is dead simple. Just specifies the aspect.


Back to the top