org.inspektr.common.spi
Interface ActionResolver<T>

All Known Subinterfaces:
StatisticNameResolver
All Known Implementing Classes:
DefaultStatisticNameResolver

public interface ActionResolver<T>

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, T auditable)
          Resolve the action for the auditable event that has incurred an exception.
 String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval, T auditable)
          Resolve the action for the auditable event.
 

Method Detail

resolveFrom

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

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

resolveFrom

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

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


Copyright © 2007-2012. All Rights Reserved.