aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr350800/AbstractProbingAspect.java
blob: 7ac8acc9e9dd7f0dc73c889c937b710ec3b39c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package test.aop;

import java.io.Serializable;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public abstract class AbstractProbingAspect<T extends Serializable> {
  
    @Pointcut("")
    protected abstract void adapterMethodExecution();
   
    @Around("adapterMethodExecution()")
    public T around(ProceedingJoinPoint thisJoinPoint) throws Throwable {
        return (T) thisJoinPoint.proceed();       
    }   
   
    protected abstract String extractFunctionName(T command);
}