Package tech.corefinance.common.aop
Class ApiLogging
java.lang.Object
tech.corefinance.common.aop.MethodDataLoging
tech.corefinance.common.aop.ApiLogging
@Component
@ConditionalOnProperty(name="tech.corefinance.log.enabled.api",
havingValue="true",
matchIfMissing=true)
public class ApiLogging
extends MethodDataLoging
-
Field Summary
Fields inherited from class tech.corefinance.common.aop.MethodDataLoging
coreFinanceUtil, objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAdditionalInputLog(org.aspectj.lang.ProceedingJoinPoint joinPoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper) logAround(org.aspectj.lang.ProceedingJoinPoint joinPoint) Logging.logGetRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) logPostRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) logPutRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyDeleteRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyPatchRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) Methods inherited from class tech.corefinance.common.aop.MethodDataLoging
doLogging, getLogingStartMark
-
Constructor Details
-
ApiLogging
public ApiLogging()
-
-
Method Details
-
logGetRequest
- Throws:
Throwable
-
logPostRequest
- Throws:
Throwable
-
logPutRequest
- Throws:
Throwable
-
verifyPatchRequest
- Throws:
Throwable
-
verifyDeleteRequest
- Throws:
Throwable
-
logAround
Logging.- Parameters:
joinPoint- This is param of AOP. Just ignore it- Returns:
- result of the wrapped services method
- Throws:
Throwable- when target method have exception
-
doAdditionalInputLog
protected void doAdditionalInputLog(org.aspectj.lang.ProceedingJoinPoint joinPoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper) - Overrides:
doAdditionalInputLogin classMethodDataLoging
-