Top "Spring-aop" questions

Spring AOP is the Spring Framework's version of AOP, implemented in pure Java and using the @AspectJ annotations from the AspectJ project.

How to instrument / advice a Spring Data (JPA) repository?

I'm failing in my effort to advice a spring data jpa repository. The goal is to instrument (around) all non-void …

java spring aspectj spring-data-jpa spring-aop
How to pool objects in Spring?

I'm following this tutorial regarding how to pool objects in Spring. I've followed the instruction written on the tutorial but …

java spring spring-3 spring-aop pooling
Spring AOP change value of methods argument on around advice

Is it possible to change method argument value on basis of some check before executing using Spring AOP My method …

java spring spring-boot spring-aop
How to intercept each method call within given method using Spring AOP or AspectJ

class Test { @override public String a(){ b(); d(); } private String b() { c(); } private String c(){ d(); } private String d(){} } I …

java aspectj spring-aop spring-aspects
Spring AOP pointcut is not well formed

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': …

spring aop spring-aop pointcut
java.lang.ClassNotFoundException: org.aspectj.util.PartialOrder$PartialComparable

I am using Spring 4.2.4.RELEASE in my web application and I would like to remove the dependency on aspectjweaver.jar …

java spring aspectj spring-aop
Java Spring AOP: Using CustomizableTraceInterceptor with JavaConfig @EnableAspectJAutoProxy, not XML <aop:advisor>

Spring AOP has a method-level tracer called CustomizableTraceInterceptor. Using Spring's XML configuration approach, one would set up this tracer like …

spring aspectj spring-aop
Log4j and AOP, how to get actual class name

I'm implementing a logger as an aspect using Spring AOP and Log4J, but I've noticed that the class name …

java spring log4j spring-aop
Java AOP JoinPoint does not get parameter names

I'm using Java Spring Mvc and Spring AOP to find the parameter names from the user. I have a controller …

java spring spring-mvc spring-aop spring-aspects
Aspect not being called in Spring test

I am using Spring 4.16 and i have my ValidationAspect, which validates methods arguments and throws ValidationException if is something wrong. …

java spring spring-aop spring-test spring-aspects