com.github.inspektr.audit.spi
Interface AuditActionResolver

All Known Implementing Classes:
AbstractSuffixAwareAuditActionResolver, BooleanAuditActionResolver, DefaultAuditActionResolver, ObjectCreationAuditActionResolver

public interface AuditActionResolver

An SPI interface needed to be implemented by individual applications requiring an audit trail record keeping functionality, to provide the action taken.

Since:
1.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Method Summary
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception, Audit audit)
          Resolve the action for the audit event that has incurred an exception.
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval, Audit audit)
          Resolve the action for the audit event.
 

Method Detail

resolveFrom

String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                   Object retval,
                   Audit audit)
Resolve the action for the audit event.

Parameters:
auditableTarget -
retval - The returned value
audit - the Audit annotation that may contain additional information.
Returns:
The resource String

resolveFrom

String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                   Exception exception,
                   Audit audit)
Resolve the action for the audit event that has incurred an exception.

Parameters:
auditableTarget -
exception - The exception incurred when the join point proceeds.
audit - the Audit annotation that may contain additional information.
Returns:
The resource String


Copyright © 2007-2012 Rutgers, the State University of New Jersey. All Rights Reserved.