org.inspektr.statistics.spi.support
Class DefaultStatisticNameResolver
java.lang.Object
org.inspektr.statistics.spi.support.DefaultStatisticNameResolver
- All Implemented Interfaces:
- ActionResolver<Statistic>, StatisticNameResolver
public final class DefaultStatisticNameResolver
- extends Object
- implements StatisticNameResolver
Returns the static name for the Statistic.
- Since:
- 0.7
- Version:
- $Revision$ $Date$
- Author:
- Scott Battaglia
Method Summary |
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Exception exception,
Statistic statistic)
Resolve the action for the auditable event that has incurred
an exception. |
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Object retval,
Statistic statistic)
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 |
DefaultStatisticNameResolver
public DefaultStatisticNameResolver()
resolveFrom
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Object retval,
Statistic statistic)
- Description copied from interface:
ActionResolver
- Resolve the action for the auditable event.
- Specified by:
resolveFrom
in interface ActionResolver<Statistic>
retval
- The returned valuestatistic
- the Auditable annotation that may contain additional information.
- Returns:
- The resource String
resolveFrom
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Exception exception,
Statistic statistic)
- Description copied from interface:
ActionResolver
- Resolve the action for the auditable event that has incurred
an exception.
- Specified by:
resolveFrom
in interface ActionResolver<Statistic>
exception
- The exception incurred when the join point proceeds.statistic
- the Auditable annotation that may contain additional information.
- Returns:
- The resource String
Copyright © 2007-2012. All Rights Reserved.