|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.inspektr.audit.spi.support.AbstractSuffixAwareAuditActionResolver
com.github.inspektr.audit.spi.support.DefaultAuditActionResolver
public final class DefaultAuditActionResolver
Default resolver. If a suffix is defined for success and failure, the failure suffix is appended if an exception is thrown. Otherwise, the success suffix is used.
| Constructor Summary | |
|---|---|
DefaultAuditActionResolver()
Constructs the resolver with empty values for the two suffixes. |
|
DefaultAuditActionResolver(String successSuffix,
String failureSuffix)
Constructs the DefaultAuditActionResolver with a success suffix and failure
suffix. |
|
| Method Summary | |
|---|---|
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Exception exception,
Audit audit)
Resolve the action for the audit event that has incurred an exception. |
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Object retval,
Audit audit)
Resolve the action for the audit event. |
| Methods inherited from class com.github.inspektr.audit.spi.support.AbstractSuffixAwareAuditActionResolver |
|---|
getFailureSuffix, getSuccessSuffix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAuditActionResolver()
public DefaultAuditActionResolver(String successSuffix,
String failureSuffix)
DefaultAuditActionResolver with a success suffix and failure
suffix. CANNOT be NULL.
successSuffix - the suffix to use in the event of a success.failureSuffix - the suffix to use in the event of a failure.| Method Detail |
|---|
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Object retval,
Audit audit)
AuditActionResolver
retval - The returned valueaudit - the Audit annotation that may contain additional information.
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Exception exception,
Audit audit)
AuditActionResolver
exception - The exception incurred when the join point proceeds.audit - the Audit annotation that may contain additional information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||