com.noir.common.lock.aop.DLockClassAnnotationAdvisor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-distributed-lock-starter Show documentation
Show all versions of spring-boot-distributed-lock-starter Show documentation
A distributed lock springboot supports
package com.noir.common.lock.aop;
import com.noir.common.lock.annotation.DLock;
import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;
import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class DLockClassAnnotationAdvisor extends AbstractPointcutAdvisor {
@Autowired
private DLockAnnotationAdvice dLockAnnotationAdvice;
@Override
public Pointcut getPointcut() {
return new AnnotationMatchingPointcut(DLock.class, null, true);
}
@Override
public Advice getAdvice() {
return dLockAnnotationAdvice;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy