O'Reilly logo

Hands-On High Performance with Spring 5 by Dinesh Radadiya, Prashant Goswami, Pritesh Shah, Subhash Shah, Chintan Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AspectJ with Spring

Spring provides small libraries to enable AspectJ aspects into Spring projects. This library is named spring-aspects.jar. As we know from our earlier discussion, Spring allows dependency injection or AOP advice only on Spring bean. With Spring's AspectJ support using this small library, we can enable any object created outside the container for Spring-driven configuration. Just annotate the outside object with @Configurable. Annotating a non-Spring bean with @Configurable would require AnnotationBeanConfigurerAspect in spring-aspects.jar. The AnnotationBeanConfigurerAspect configuration needed by Spring can be done by annotating our configuration Java configuration class with @EnableSpringConfigured

Spring provides a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required