Top "Spring-aspects" questions

common utility aspects to use when creating systems with [spring-aop]

Retrieve parameter value from ProceedingJoinPoint

In my Request i have a parameter name "accessToken", how do i get request parameter value from ProceedingJoinPoint ? public Object …

aop spring-aop spring-aspects
spring autowired aop circular dependency

I'm using java config with @ComponentScanin order to initialize my beans and @EnableAspectJAutoProxy(proxyTargetClass=true)to use cglib proxies. In …

spring aop spring-aspects
How to load a custom DaoAuthenticationProvider into the Spring Context?

I have this issue with Spring Security. I have a java-config implementation with a SecurityConfig class, that extends WebSecurityConfigurerAdapter. In …

java spring spring-mvc spring-security spring-aspects
Spring AOP Exclude Some Classes

I'm using Spring AspectJ for logging method execution statistics, however, I want to exclude some classes and methods from this …

spring spring-aop spring-aspects
Dependency Injection into Spring non-managed beans

I have a JPA domain class that is non managed. It is instantiated via the new operator. UserAccount account = new …

java spring spring-boot aspectj spring-aspects
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
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