org.inspektr.audit.spi.support
Class BooleanAuditableActionResolver
java.lang.Object
org.inspektr.audit.spi.support.BooleanAuditableActionResolver
- All Implemented Interfaces:
- AuditableActionResolver
public final class BooleanAuditableActionResolver
- extends Object
- implements AuditableActionResolver
Implementation of ActionResolver
that can process boolean return values.
Return values are basically action + either the success or failure suffix based on the boolean
value.
- Since:
- 1.0
- Version:
- $Revision$ $Date$
- Author:
- Scott Battaglia
Method Summary |
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Exception exception,
Auditable auditable)
Resolve the action for the auditable event that has incurred
an exception. |
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
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 |
BooleanAuditableActionResolver
public BooleanAuditableActionResolver()
resolveFrom
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
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 valueauditable
- the Auditable annotation that may contain additional information.
- Returns:
- The resource String
resolveFrom
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
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-2012. All Rights Reserved.