Aspektj nach Rückkehr
@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) { ... }
}
Blue-eyed Boar