> pointcut traceMyBean():execution(public * (@(javax.ejb.Stateless ) > com.frogx..*).*(..));
That pointcut says "execution of any public method in a type annotated by @Stateless" - if a type is not annotated by @Stateless it will not match methods within it - doesn't matter if the methods have an annotation. execution(@Stateless public * com.frogx..*.*(..)) would match public methods annotated with @Stateless (if that is what you mean you want to say?). Put them together and you have the full set. Andy On 16 February 2010 10:26, yaron <[email protected]> wrote: > Hi, > I don't know if that is meant to be or not but I tried the following > pointcut > pointcut traceMyBean():execution(public * (@(javax.ejb.Stateless ) > com.frogx..*).*(..)); > I discovered that it traced all public methods except when the method had > annotation at the method level > Is that a bug or a feature and how should the pointcut be written to trace > the annotated methods? > Thanks, > Yaron > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
