Class AbstractAspect
java.lang.Object
kieker.monitoring.probe.aspectj.AbstractAspectJProbe
kieker.monitoring.probe.aspectj.beforeafter.onlycallee.AbstractAspect
- All Implemented Interfaces:
kieker.monitoring.probe.IMonitoringProbe
public abstract class AbstractAspect extends AbstractAspectJProbe
This aspect spawns before and after events by foregoing an around advice.
Instead, it uses before and after advices only so that "cflow" can be used when specifying its pointcut.
This implementation uses
JoinPoint.StaticPart instead of JoinPoint in the advices for performance reasons:
If you only need the static information about the join point, you may access the static part of the join point directly with the special variable thisJoinPointStaticPart. Using thisJoinPointStaticPart will avoid the run-time creation of the join point object that may be necessary when using thisJoinPoint directly.
- Since:
- 1.13
-
Constructor Summary
Constructors Constructor Description AbstractAspect() -
Method Summary
Modifier and Type Method Description voidafterOperation(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart)voidafterReturningOperation(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart)voidafterThrowing(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart, java.lang.Throwable th)voidbeforeOperation(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart)abstract voidmonitoredOperation()The pointcut for the monitored operations.Methods inherited from class kieker.monitoring.probe.aspectj.AbstractAspectJProbe
getter, noGetterAndSetter, notWithinKieker, setter, signatureToLongString
-
Constructor Details
-
AbstractAspect
public AbstractAspect()
-
-
Method Details
-
monitoredOperation
public abstract void monitoredOperation()The pointcut for the monitored operations. Inheriting classes should extend the pointcut in order to find the correct executions of the methods (e.g. all methods or only methods with specific annotations). -
beforeOperation
public void beforeOperation(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart) -
afterReturningOperation
public void afterReturningOperation(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart) -
afterThrowing
public void afterThrowing(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart, java.lang.Throwable th) -
afterOperation
public void afterOperation(org.aspectj.lang.JoinPoint.StaticPart jpStaticPart)
-