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.

Transaction configuration for Spring Java configured context

I've been struggling with this for a few hours now. I'm trying to migrate my Spring XML configuration to a …

java spring transactions annotations spring-aop
Aspectj overwrite an argument of a method

I'm developing an aspect that checks arguments of setter methods and overwrites empty strings with null value. This is my …

java aop aspectj spring-aop
Spring @Transactional in an Aspect (AOP)

I've created an Aspect which contains an @Transactional annotation. My advice is being invoked as expected, but the new entity …

java hibernate transactions spring-aop
Testing a Spring AOP Aspect

When writing aspects, how can I test that they do match and that they are invoked when I want them …

java spring spring-aop
Spring AOP works without @EnableAspectJAutoProxy?

I am learning Spring (currently its AOP framework). Even though all sources I've read say that to enable AOP one …

java spring aspectj spring-aop
Implementing Audit Trail- Spring AOP vs.Hibernate Interceptor vs DB Trigger

I found couple of discussion threads on this- but nothing which brought a comparison of all three mechanism under one …

database hibernate audit spring-aop
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
Spring AOP at Service Layer

I need some help with Spring AOP. I've the following code: @Service public class UserSecurityService implements UserDetailsService { @Autowired private UserService …

java spring-mvc proxy aop spring-aop
Spring AOP target() vs this()

From Spring Documentation: any join point (method execution only in Spring AOP) where the proxy implements the AccountService interface: this(…

spring spring-aop
Can we enable or disable Aspect based on value of any flag or through configuration file?

I have added following dependency in pom.xml <dependency> <groupId>org.springframework</groupId> <…

java aspectj spring-aop