org.inspektr.audit.spi.support
Class DefaultAuditableActionResolver

java.lang.Object
  extended by org.inspektr.audit.spi.support.DefaultAuditableActionResolver
All Implemented Interfaces:
AuditableActionResolver

public final class DefaultAuditableActionResolver
extends java.lang.Object
implements AuditableActionResolver

Default implementation of the AuditableActionResolver interface that returns the value of the Auditable annotation as the action.

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

Constructor Summary
DefaultAuditableActionResolver()
           
 
Method Summary
 java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, java.lang.Exception exception, Auditable auditable)
          Resolve the action for the auditable event that has incurred an exception.
 java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, java.lang.Object retval, Auditable auditable)
          Resolve the action for the auditable event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuditableActionResolver

public DefaultAuditableActionResolver()
Method Detail

resolveFrom

public java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                                    java.lang.Object retval,
                                    Auditable auditable)
Description copied from interface: AuditableActionResolver
Resolve the action for the auditable event.

Specified by:
resolveFrom in interface AuditableActionResolver
retval - The returned value
auditable - the Auditable annotation that may contain additional information.
Returns:
The resource String

resolveFrom

public java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
                                    java.lang.Exception exception,
                                    Auditable auditable)
Description copied from interface: AuditableActionResolver
Resolve the action for the auditable event that has incurred an exception.

Specified by:
resolveFrom in interface AuditableActionResolver
exception - The exception incurred when the join point proceeds.
auditable - the Auditable annotation that may contain additional information.
Returns:
The resource String


Copyright © 2007-2011. All Rights Reserved.