package integration.anyframe.services.aop.aspect.aspectj; import org.aspectj.lang.Signature; public aspect PrintStringAroundUsingAspctJ { pointcut updateMethods(): execution(public * integration.anyframe.services..*Impl.update*(..)); Object around() : updateMethods() { Class targetClass = thisJoinPoint.getTarget().getClass(); Signature signature = thisJoinPoint.getSignature(); String opName = signature.getName(); System.out.println("Around Advice of PrintStringUsingAspctJ"); System.out.println("***" + targetClass + "." + opName + "()" + "***"); // before logic Object retVal = proceed(); // after logic return retVal; } }