Class AuditedInterceptor


  • @Interceptor
    @Priority(1900)
    public class AuditedInterceptor
    extends Object
    Interceptor that executes around methods annotated with Audited

    This interceptor follows the execution of a method and marks the audit entry as failed if the inner method throws an exception.

    This interceptor reads the inner method parameters to gather extra information for the audit entry.

    • Constructor Detail

      • AuditedInterceptor

        public AuditedInterceptor()
    • Method Detail

      • auditMethod

        public Object auditMethod​(javax.interceptor.InvocationContext context)
                           throws Exception
        Throws:
        Exception