@Component public abstract class AbstractAopMethodLogger extends Object
| Constructor and Description |
|---|
AbstractAopMethodLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
logMethodCall(org.aspectj.lang.JoinPoint joinPoint)
Logs the execution of a join point and of its parameters.
|
Object |
logMethodDuration(org.aspectj.lang.ProceedingJoinPoint call)
Logs duration of join points.
|
abstract void |
methodsToBeLogged()
implement this method in your project specific Aspect, defining method patterns as Pointcuts.
|
public abstract void methodsToBeLogged()
public void logMethodCall(org.aspectj.lang.JoinPoint joinPoint)
In aspect-oriented programming a set of join points is called a pointcut. A join point is a specification of when, in the corresponding main program, the aspect code should be executed. The join point is a point of execution in the base code where the advice specified in a corresponding pointcut is applied.
joinPoint - the event of the advicepublic Object logMethodDuration(org.aspectj.lang.ProceedingJoinPoint call) throws Throwable
LOGGER is at minimum debug level.call - a proceeding joinpointThrowable - if error in proceedingCopyright © 2017. All rights reserved.