package com.example.spring.aop.security; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; @Aspect public class MyPointcuts { /* * Following are the pointcut declarations. Note that these can be defined in separate classes as well. */ @Pointcut("execution(public * com.example.spring.aop.Account.withdraw(..)) && args(amount)") // pointcut expression - a selector public void checkWithAmount(double amount) {} // pointcut signature - the name for the pointcut @Pointcut("execution(public * com.example.spring.aop.Account.deposit(..))") // pointcut expression - a selector public void abc() {} // pointcut signature - the name for the pointcut @Pointcut("execution(public * com.example.spring.aop.Account.withdraw(..)) || execution(public * com.example.spring.aop.Account.deposit(..))") public void depositAndWithdraw() {} }