Skip to content
Snippets Groups Projects
Commit 531e602e authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4485 Rename aspects

parent 0c5e0d64
Branches
Tags
No related merge requests found
...@@ -14,17 +14,17 @@ import de.itvsh.kop.common.logging.AspectLoggingUtils; ...@@ -14,17 +14,17 @@ import de.itvsh.kop.common.logging.AspectLoggingUtils;
public class AlfaLoggingAspect extends AlfaAspectPointcuts { public class AlfaLoggingAspect extends AlfaAspectPointcuts {
@Before("anyPublicServiceMethod() || anyPublicRestControllerMethod()") @Before("anyPublicServiceMethod() || anyPublicRestControllerMethod()")
public void onServiceMethod(JoinPoint joinPoint) { public void onLoggedMethod(JoinPoint joinPoint) {
AspectLoggingUtils.log(joinPoint); AspectLoggingUtils.log(joinPoint);
} }
@AfterThrowing(pointcut = "anyPublicServiceMethod() || anyPublicRestControllerMethod()", throwing = "ex") @AfterThrowing(pointcut = "anyPublicServiceMethod() || anyPublicRestControllerMethod()", throwing = "ex")
public void afterExceptionInServiceMethod(JoinPoint joinPoint, Exception ex) { public void afterExceptionInLoggedMethod(JoinPoint joinPoint, Exception ex) {
AspectLoggingUtils.logException(joinPoint, ex); AspectLoggingUtils.logException(joinPoint, ex);
} }
@AfterReturning(pointcut = "anyPublicServiceMethod() || anyPublicRestControllerMethod()", returning = "returnValue") @AfterReturning(pointcut = "anyPublicServiceMethod() || anyPublicRestControllerMethod()", returning = "returnValue")
public void afterServiceMethod(JoinPoint joinPoint, Object returnValue) { public void afterLoggedMethod(JoinPoint joinPoint, Object returnValue) {
AspectLoggingUtils.logReturnValue(joinPoint, returnValue); AspectLoggingUtils.logReturnValue(joinPoint, returnValue);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment