com.mypackage.aspects.RequestIdTrace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of helloworld_woven Show documentation
Show all versions of helloworld_woven Show documentation
Weave HelloWorld class with the automon aspect.
This is an example of compile time weaving.
The newest version!
package com.mypackage.aspects;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.automon.aspects.tracing.aspectj.RequestIdAspect;
/** Sample outputs from this aspect...
*/
@Aspect
public class RequestIdTrace extends RequestIdAspect {
// Note the pointcut will work with public/private/protected methods (privileged)
// The commented out within(...) pointcut will work with any of the aspectj types/kind
// that are supported such as execution/call/get/set/constructors/static initialization ...
// @Pointcut("within(com.stevesouza.helloworld.HelloWorld+)")
@Pointcut("execution(* com.stevesouza.helloworld.HelloWorld.*(..))")
public void select() {
}
}