Answers for "aspectj after returning"

0

aspectj after returning

@Aspect
public class LoggingAspect {
 
    @AfterReturning("execution(* com.howtodoinjava.app.service.impl.EmployeeManagerImpl.*(..))")
    public void logAroundAllMethods() { ... }
 
    @AfterReturning(pointcut="execution(* com.howtodoinjava.app.service.impl.EmployeeManagerImpl.getEmployeeById(..))", returning="retVal") 
    public void logAroundGetEmployee(Object retVal) { ... }
}
Posted by: Guest on June-11-2021

Browse Popular Code Answers by Language