Java Aspectj Usage proceedAroundCallAtAspectJ(JoinPoint thisJoinPoint)

Here you can find the source of proceedAroundCallAtAspectJ(JoinPoint thisJoinPoint)

Description

proceed Around Call At Aspect J

License

Open Source License

Declaration

public static Object proceedAroundCallAtAspectJ(JoinPoint thisJoinPoint) throws Throwable 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;

public class Main {
    public static Object proceedAroundCallAtAspectJ(JoinPoint thisJoinPoint) throws Throwable {
        Object ret = null;//w ww  .j a va 2s .  c  om
        Object args[] = thisJoinPoint.getArgs();
        if (args.length > 0) {
            int proceedIndex = (args.length - 1);
            if (args[proceedIndex] instanceof ProceedingJoinPoint) {
                ret = ((ProceedingJoinPoint) args[proceedIndex]).proceed();
            }
        }
        return ret;
    }
}

Related

  1. getTargetClass(JoinPoint jp)
  2. getTargets(IProgramElement node, IRelationship.Kind kind)
  3. isAnonymous(IProgramElement node)
  4. isConstantPushInstruction(Instruction i)
  5. isSuppressing(Member member, String lintkey)
  6. process(ProceedingJoinPoint point, Object[] args)
  7. readAjAttributes(String classname, Attribute[] as, ISourceContext context, World w, AjAttribute.WeaverVersionInfo version, ConstantPoolReader dataDecompressor)
  8. renderArgs(JoinPoint jp)
  9. renderJoinPoint(JoinPoint jp)