com.github.inspektr.audit.spi
Interface AuditResourceResolver

All Known Implementing Classes:
AbstractAuditResourceResolver, ObjectToStringResourceResolver, ParametersAsStringResourceResolver, ReturnValueAsStringResourceResolver

public interface AuditResourceResolver

An SPI interface needed to be implemented by individual applications requiring an audit trail record keeping functionality, to provide a current resource on which an audit-able action is being performed.

Since:
1.0
Version:
$Revision$ $Date$
Author:
Dmitriy Kopylenko

Method Summary
 String[] resolveFrom(org.aspectj.lang.JoinPoint target, Exception exception)
          Resolve the auditable resource for an audit-able action that has incurred an exception.
 String[] resolveFrom(org.aspectj.lang.JoinPoint target, Object returnValue)
          Resolve the auditable resource.
 

Method Detail

resolveFrom

String[] resolveFrom(org.aspectj.lang.JoinPoint target,
                     Object returnValue)
Resolve the auditable resource.

Parameters:
target - the join point that contains the arguments.
returnValue - The returned value
Returns:
The resource String.

resolveFrom

String[] resolveFrom(org.aspectj.lang.JoinPoint target,
                     Exception exception)
Resolve the auditable resource for an audit-able action that has incurred an exception.

Parameters:
target - the join point that contains the arguments.
exception - The exception incurred when the join point proceeds.
Returns:
The resource String.


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