Class JKLoggedInterceptor

java.lang.Object
com.jk.core.logging.JKLoggedInterceptor
All Implemented Interfaces:
Serializable

@Interceptor @Priority(1000) public class JKLoggedInterceptor extends Object implements Serializable
This class is an interceptor for logging method calls and their outcomes.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • JKLoggedInterceptor

      public JKLoggedInterceptor()
  • Method Details

    • aroundInvoke

      public Object aroundInvoke(jakarta.interceptor.InvocationContext ctx) throws Exception
      This method intercepts method calls and logs relevant information before and after invocation.
      Parameters:
      ctx - Specifies the invocation context, containing information about the method call.
      Returns:
      the result of the method invocation.
      Throws:
      Exception - if an error occurs during method invocation.