More specific pointcut to be safe

pull/1618/head
Dave Syer 11 years ago
parent 1ffdc90f04
commit 3978700b4a

@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
@Component @Component
public class ServiceMonitor { public class ServiceMonitor {
@AfterReturning("execution(* *..*Service.*(..))") @AfterReturning("execution(* sample..*Service.*(..))")
public void logServiceAccess(JoinPoint joinPoint) { public void logServiceAccess(JoinPoint joinPoint) {
System.out.println("Completed: " + joinPoint); System.out.println("Completed: " + joinPoint);
} }

Loading…
Cancel
Save