I am using Spring AOP and have below aspect:
@Aspect
public class LoggingAspect {
@Before(\"execution(* com.mkyong.customer.bo.CustomerBo.addCustomer(..
Yes, the value of any argument can be found using getArgs
@Before("execution(* com.mkyong.customer.bo.CustomerBo.addCustomer(..))")
public void logBefore(JoinPoint joinPoint) {
Object[] signatureArgs = thisJoinPoint.getArgs();
for (Object signatureArg: signatureArgs) {
System.out.println("Arg: " + signatureArg);
...
}
}