com.github.inspektr.audit.spi.support
Class ObjectToStringResourceResolver
java.lang.Object
com.github.inspektr.audit.spi.support.ObjectToStringResourceResolver
- All Implemented Interfaces:
- AuditResourceResolver
public class ObjectToStringResourceResolver
- extends Object
- implements AuditResourceResolver
Inspektr ResourceResolver that resolves resource as a target object's toString method call
- 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectToStringResourceResolver
public ObjectToStringResourceResolver()
resolveFrom
public String[] resolveFrom(org.aspectj.lang.JoinPoint target,
Object returnValue)
- Description copied from interface:
AuditResourceResolver
- Resolve the auditable resource.
- Specified by:
resolveFrom in interface AuditResourceResolver
- Parameters:
target - the join point that contains the arguments.returnValue - The returned value
- Returns:
- The resource String.
resolveFrom
public String[] resolveFrom(org.aspectj.lang.JoinPoint target,
Exception exception)
- 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:
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.