com.mypackage.aspects.MyAspect 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.
package com.mypackage.aspects;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.automon.aspects.SpringBase;
/**
*/
@Aspect
public class MyAspect extends SpringBase {
@Pointcut("profile()")
public void user_monitor() {
}
@Pointcut("profile()")
public void user_exceptions() {
}
@Pointcut("execution(public * com.stevesouza.helloworld.HelloWorld.*(..))")
public void profile() {
}
}