Here you can find the source of unWrapJoinPoint(final JoinPoint point)
Parameter | Description |
---|---|
point | Join point to unwrap. |
public static JoinPoint unWrapJoinPoint(final JoinPoint point)
//package com.java2s; //License from project: Apache License import org.aspectj.lang.JoinPoint; public class Main { /**//from w w w .j a va2 s .c o m * Unwraps a join point that may be nested due to layered proxies. * * @param point Join point to unwrap. * @return Innermost join point; if not nested, simply returns the argument. */ public static JoinPoint unWrapJoinPoint(final JoinPoint point) { JoinPoint naked = point; while (naked.getArgs().length > 0 && naked.getArgs()[0] instanceof JoinPoint) { naked = (JoinPoint) naked.getArgs()[0]; } return naked; } }