You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractProbingAspect.java 625B

12345678910111213141516171819202122
  1. package test.aop;
  2. import java.io.Serializable;
  3. import org.aspectj.lang.ProceedingJoinPoint;
  4. import org.aspectj.lang.annotation.Around;
  5. import org.aspectj.lang.annotation.Aspect;
  6. import org.aspectj.lang.annotation.Pointcut;
  7. @Aspect
  8. public abstract class AbstractProbingAspect<T extends Serializable> {
  9. @Pointcut("")
  10. protected abstract void adapterMethodExecution();
  11. @Around("adapterMethodExecution()")
  12. public T around(ProceedingJoinPoint thisJoinPoint) throws Throwable {
  13. return (T) thisJoinPoint.proceed();
  14. }
  15. protected abstract String extractFunctionName(T command);
  16. }