Package nl.vpro.domain.media
Class MediaObjectLockerAspect
java.lang.Object
nl.vpro.domain.media.MediaObjectLockerAspect
This makes locking on mid easier.
Just annotate your method with MediaObjectLocker.Mid
and it should automatically lock the mid if it isn't yet.
- Since:
- 5.8
- Author:
- Michiel Meeuwissen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassertNoMidLock
(org.aspectj.lang.ProceedingJoinPoint joinPoint, MediaObjectLocker.AssertNoMidLock annotation) protected static MediaIdentifiable.Correlation
getCorrelation
(String method, Object object) static ScheduleEventIdentifier
lockMid
(org.aspectj.lang.ProceedingJoinPoint joinPoint, MediaObjectLocker.Mid annotation) lockSid
(org.aspectj.lang.ProceedingJoinPoint joinPoint, MediaObjectLocker.Sid annotation)
-
Constructor Details
-
MediaObjectLockerAspect
public MediaObjectLockerAspect()
-
-
Method Details
-
lockMid
public Object lockMid(org.aspectj.lang.ProceedingJoinPoint joinPoint, MediaObjectLocker.Mid annotation) -
lockSid
public Object lockSid(org.aspectj.lang.ProceedingJoinPoint joinPoint, MediaObjectLocker.Sid annotation) -
assertNoMidLock
public Object assertNoMidLock(org.aspectj.lang.ProceedingJoinPoint joinPoint, MediaObjectLocker.AssertNoMidLock annotation) -
getCorrelation
-
getSid
-