1 2 3 4 5 6 7 8 9 10 11 12 13
import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; @Aspect public abstract class AbstractAspect { @Around("execution(* ClassWithJoinPoint.getValue(..))") public Object ClassWithJoinPoint_getValue() { return getValueReplacement(); } protected abstract Boolean getValueReplacement(); }