org.aspectj/tests/bugs153/pr149305/case1/AbstractOzonator.java
2006-07-04 16:53:37 +00:00

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();
}
}