Quantcast
Channel: Enable Spring AOP or AspectJ - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by user730413 for Enable Spring AOP or AspectJ

Use @Aspect @Configurable Also add "< context:spring-configured />" in your XML configuration file.

View Article


Answer by MikePatel for Enable Spring AOP or AspectJ

@Component will create 2 instances, one inside the Spring container, one inside the aspectJ container. use @Configurable to allow spring to manage dependency injection etc. for your class when...

View Article

Answer by Bozho for Enable Spring AOP or AspectJ

@Aspect is not a spring annotation, and it is not detected by component-scan. So you have to register it somehow as a spring bean. The aspectOf solution works. You can also try @Aspect @Component

View Article

Enable Spring AOP or AspectJ

This is following on from this question: Spring autowired bean for @Aspect aspect is null My initial understanding was that when using Spring AOP, classes annotated with @Aspect are created as spring...

View Article
Browsing latest articles
Browse All 4 View Live