public class BigFatLockHeldAdvice extends AspectJMethodBeforeAdvice
BigFatLock is held.aspectJAdviceMethod, JOIN_POINT_KEYHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
BigFatLockHeldAdvice(Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
before(Method method,
Object[] args,
Object target)
Verifies the
BigFatLock is held. |
protected void |
lockNotHeld()
Invoked in cases where the current thread does not hold the
BigFatLock. |
isAfterAdvice, isBeforeAdviceargBinding, buildSafePointcut, calculateArgumentBindings, createParameterNameDiscoverer, currentJoinPoint, getAspectClassLoader, getAspectInstanceFactory, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningGenericType, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectName, setDeclarationOrder, setReturningName, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, supportsProceedingJoinPoint, toStringpublic BigFatLockHeldAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)
aspectJBeforeAdviceMethod - method to advisepointcut - pointcutaif - factory for aspect instancepublic void before(Method method, Object[] args, Object target)
BigFatLock is held. If not, lockNotHeld() is invoked.before in interface MethodBeforeAdvicebefore in class AspectJMethodBeforeAdviceprotected void lockNotHeld()
BigFatLock.
The implementation in BigFatLockHeldAdvice throws a BigFatLockNotHeldException.
Subclasses can override to suit.
Copyright © 2016. All rights reserved.