Class InformationLoggingAspect

java.lang.Object
io.github.tkasozi.aspect.InformationLoggingAspect

public class InformationLoggingAspect extends Object
Implements AOP and persists logs via Repository.
  • Constructor Details

    • InformationLoggingAspect

      public InformationLoggingAspect(EventLogRepository logRepository, Long ttl)
      Required args Constructor.
      Parameters:
      logRepository - persistence layer for Event log.
      ttl - Time to live.
  • Method Details

    • logExecutionTimeType

      public Object logExecutionTimeType(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint) throws Throwable
      Supports using TimeProfile on classes.
      Parameters:
      proceedingJoinPoint - The proceeding request.
      Returns:
      The object that was timed.
      Throws:
      Throwable - Expected exception.
    • logExecutionTimeMethod

      public Object logExecutionTimeMethod(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint) throws Throwable
      Supports using TimeProfile on methods.
      Parameters:
      proceedingJoinPoint - The proceeding request.
      Returns:
      The object that was timed.
      Throws:
      Throwable - Expected exception.