mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-08 03:06:07 +02:00
27 lines
715 B
Java
27 lines
715 B
Java
package ajtest2;
|
|
|
|
import org.aspectj.lang.ProceedingJoinPoint;
|
|
import org.aspectj.lang.annotation.Around;
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
import org.aspectj.lang.annotation.Pointcut;
|
|
|
|
@Aspect
|
|
public abstract class AbstractOzonator
|
|
{
|
|
|
|
@Pointcut("")
|
|
protected abstract void readMethodExecution();
|
|
|
|
@Pointcut("readMethodExecution() && this(ozonated)")
|
|
private void ozonatedReadExecution(Object ozonated){};
|
|
|
|
@Around("ozonatedReadExecution(ozonated)")
|
|
public Object aroundGetterCallNoRecurse( ProceedingJoinPoint thisJoinPoint,
|
|
Object ozonated) throws Throwable
|
|
{
|
|
System.out.println("thisJoinPoint="+thisJoinPoint+", ozonated="+ozonated);
|
|
return thisJoinPoint.proceed();
|
|
}
|
|
|
|
}
|