@Component public class JamonAopKeyHelper extends Object implements JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
Constructor and Description |
---|
JamonAopKeyHelper() |
JamonAopKeyHelper(boolean useArgsWithMethodDetails,
boolean useArgsWithExceptionDetails) |
Modifier and Type | Method and Description |
---|---|
String |
getDetails(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
Create details for the invoked method.
|
String |
getDetails(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
Throwable exception)
Create details for when an exception is thrown.
|
String |
getExceptionLabel(Throwable exception)
Create a label out of the passed in exception.
|
String |
getLabel(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
Uses a jamon label as a method name.
|
void |
setUseArgsWithExceptionDetails(boolean useArgsWithExceptionDetails)
Track arguments for all exceptions thrown.
|
void |
setUseArgsWithMethodDetails(boolean useArgsWithMethodDetails)
Track arguments for all methods monitored.
|
public JamonAopKeyHelper()
public JamonAopKeyHelper(boolean useArgsWithMethodDetails, boolean useArgsWithExceptionDetails)
public void setUseArgsWithMethodDetails(boolean useArgsWithMethodDetails)
setUseArgsWithMethodDetails
in interface JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
useArgsWithMethodDetails
- public void setUseArgsWithExceptionDetails(boolean useArgsWithExceptionDetails)
setUseArgsWithExceptionDetails
in interface JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
useArgsWithExceptionDetails
- public String getLabel(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
getLabel
in interface JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
proceedingJoinPoint
- public String getExceptionLabel(Throwable exception)
getExceptionLabel
in interface JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
exception
- public String getDetails(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
getDetails
in interface JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
proceedingJoinPoint
- public String getDetails(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, Throwable exception)
getDetails
in interface JamonAopKeyHelperInt<org.aspectj.lang.ProceedingJoinPoint>
proceedingJoinPoint
- exception
- Copyright © 2015. All rights reserved.