moved pointcut to @Repository instead of @Service

In that way we don't need a dedicated config file for the Service layer
This commit is contained in:
Mic 2013-02-08 14:26:00 +08:00
parent 5699bf83ee
commit 572ef6e2c4
5 changed files with 3 additions and 18 deletions

View file

@ -55,7 +55,7 @@ public class CallMonitoringAspect {
}
@Around("within(@org.springframework.stereotype.Service *)")
@Around("within(@org.springframework.stereotype.Repository *)")
public Object invoke(ProceedingJoinPoint joinPoint) throws Throwable {
if (this.isEnabled) {
StopWatch sw = new StopWatch(joinPoint.toShortString());