Class LockAspect

java.lang.Object
ir.msob.jima.lock.service.LockAspect

@Component public class LockAspect extends Object
AOP Aspect for locking functionality around annotated methods. This aspect acquires a lock based on a provided key expression.
  • Constructor Details

    • LockAspect

      public LockAspect()
  • Method Details

    • processWithLock

      public <K extends Serializable> Object processWithLock(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Process the method execution with lock acquisition based on annotation.
      Parameters:
      joinPoint - ProceedingJoinPoint for the annotated method
      Returns:
      the result of the annotated method execution
      Throws:
      Throwable - if an error occurs during method execution