Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Aspectj JoinPoint
Aspectj JoinPoint [message #674226] Thu, 26 May 2011 08:20 Go to next message
moha  is currently offline moha Friend
Messages: 43
Registered: March 2011

I want to define a pointcut in order to select joinpoint that is an execution of methods wich have the package name start with a defined string .

example : a) s,boolean flag)

i tried :

@Pointcut("execution (**.*(..)))

public void myPointcut() {


but it didn't work.

any idea ????

thanks in advance.
Re: Aspectj JoinPoint [message #674474 is a reply to message #674226] Fri, 27 May 2011 05:02 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
Two possibilities:

1. I don't know if this is the actual package name that you are using, but 'package' is not allowed in a package name.
2.*.*(..) will match all methods in all types inside of the package, but it will not match anything in Instead, you need to do*.*(..) (notice the extra do).
Previous Topic:Problem to catch exception with aspectj
Next Topic:exclude <clinit> java in pointcut
Goto Forum:

Current Time: Fri Feb 28 15:10:43 GMT 2020

Powered by FUDForum. Page generated in 0.01855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top