@Pointcut("within(@org.springframework.stereotype.Repository *)")
public void beanAnnotatedWithRepository() {
//Selector for Repository annotated classes
}
@Pointcut("execution(public * *(..))")
private void publicMethod() {
//Selector for public methods
}
@Around("publicMethod() && beanAnnotatedWithRepository()")
public Object injectCassandraConntion(ProceedingJoinPoint pjp) throws Throwable {
//some implementation
}--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/7035f793-d011-4bc8-a5d1-39518e43b0f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.