Method Summary |
|
protected Object[] | argBinding(JoinPoint jp, JoinPointMatch jpMatch, Object returnValue, Throwable ex) |
final public Pointcut | buildSafePointcut() Build a 'safe' pointcut that excludes the AspectJ advice method itself. |
final public synchronized void | calculateArgumentBindings() Do as much work as we can as part of the set-up so that argument binding
on subsequent advice invocations can be as fast as possible.
If the first argument is of type JoinPoint or ProceedingJoinPoint then we
pass a JoinPoint in that position (ProceedingJoinPoint for around advice).
If the first argument is of type JoinPoint.StaticPart
then we pass a JoinPoint.StaticPart in that position.
Remaining arguments have to be bound by pointcut evaluation at
a given join point. |
protected ParameterNameDiscoverer | createParameterNameDiscoverer() Create a ParameterNameDiscoverer to be used for argument binding. |
public static JoinPoint | currentJoinPoint() Lazily instantiate joinpoint for the current invocation. |
final public ClassLoader | getAspectClassLoader() Return the ClassLoader for aspect instances. |
final public AspectInstanceFactory | getAspectInstanceFactory() Return the factory for aspect instances. |
final public Method | getAspectJAdviceMethod() Return the AspectJ-style advice method. |
public String | getAspectName() |
public int | getDeclarationOrder() |
protected Object | getDiscoveredReturningGenericType() |
protected Class | getDiscoveredReturningType() |
protected Class | getDiscoveredThrowingType() |
protected JoinPoint | getJoinPoint() Overridden in around advice to return proceeding join point. |
protected JoinPointMatch | getJoinPointMatch() Get the current join point match at the join point we are being dispatched on. |
protected JoinPointMatch | getJoinPointMatch(ProxyMethodInvocation pmi) |
public int | getOrder() |
final public AspectJExpressionPointcut | getPointcut() Return the AspectJ expression pointcut. |
protected Object | invokeAdviceMethod(JoinPointMatch jpMatch, Object returnValue, Throwable ex) Invoke the advice method. |
protected Object | invokeAdviceMethod(JoinPoint jp, JoinPointMatch jpMatch, Object returnValue, Throwable t) |
protected Object | invokeAdviceMethodWithGivenArgs(Object[] args) |
public void | setArgumentNames(String argNames) Set by creator of this advice object if the argument names are known. |
public void | setArgumentNamesFromStringArray(String[] args) |
public void | setAspectName(String name) |
public void | setDeclarationOrder(int order) |
public void | setReturningName(String name) |
protected void | setReturningNameNoCheck(String name) We need to hold the returning name at this level for argument binding calculations,
this method allows the afterReturning advice subclass to set the name. |
public void | setThrowingName(String name) |
protected void | setThrowingNameNoCheck(String name) We need to hold the throwing name at this level for argument binding calculations,
this method allows the afterThrowing advice subclass to set the name. |
protected boolean | supportsProceedingJoinPoint() |
public String | toString() |