com.github.inspektr.audit.spi.support
Class AbstractAuditResourceResolver
java.lang.Object
com.github.inspektr.audit.spi.support.AbstractAuditResourceResolver
- All Implemented Interfaces:
- AuditResourceResolver
- Direct Known Subclasses:
- ParametersAsStringResourceResolver
public abstract class AbstractAuditResourceResolver
- extends Object
- implements AuditResourceResolver
Abstract AuditResourceResolver for when the resource is the same regardless of an exception or not.
- Since:
- 1.0
- Version:
- $Revision$ $Date$
- Author:
- Scott Battaglia
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAuditResourceResolver
public AbstractAuditResourceResolver()
resolveFrom
public final String[] resolveFrom(org.aspectj.lang.JoinPoint joinPoint,
Object retVal)
- Description copied from interface:
AuditResourceResolver
- Resolve the auditable resource.
- Specified by:
resolveFrom in interface AuditResourceResolver
- Parameters:
joinPoint - the join point that contains the arguments.retVal - The returned value
- Returns:
- The resource String.
resolveFrom
public final String[] resolveFrom(org.aspectj.lang.JoinPoint joinPoint,
Exception e)
- Description copied from interface:
AuditResourceResolver
- Resolve the auditable resource for an audit-able action that has
incurred an exception.
- Specified by:
resolveFrom in interface AuditResourceResolver
- Parameters:
joinPoint - the join point that contains the arguments.e - The exception incurred when the join point proceeds.
- Returns:
- The resource String.
createResource
protected abstract String[] createResource(Object[] args)
Copyright © 2007-2012 Rutgers, the State University of New Jersey. All Rights Reserved.