Loading tutorials
@Component, @Configuration). You should also have a basic idea of what Java reflection is. No AOP knowledge is needed.2 min readMethod, invoke), and Spring beans. It covers how the JDK builds a proxy at runtime, which is the mechanism Spring AOP uses for beans that implement interfaces.2 min read@Component, @Configuration), and annotations. You should also know that Spring wraps beans in proxies, which earlier chapters covered. Here you turn that mechanism on and write an aspect that times service methods.2 min read@Aspect bean and know what advice and a join point are. In Spring AOP, a join point is always a method execution on a Spring bean. A pointcut expression decides which of those executions an aspect applies to.2 min read@Aspect, enable AOP, and read a basic pointcut expression such as execution(* com.example.service..*(..)). Advice is the code that runs at a matched join point. Spring offers five kinds, and they differ in when they run and what they can change.2 min read@Aspect and a pointcut expression, and that you know Spring wraps beans in proxies. It looks at what makes @Around different from the other advice types.2 min read@Aspect with advice and a pointcut, and that you know Spring wraps beans in proxies. When several aspects match the same method, the order in which they run affects the result. A security check should run before a timer starts, and a retry aspect should wrap a2 min read@Aspect and read a pointcut expression. You should also know how Spring wraps beans in proxies. Here you will create your own annotation and an aspect that runs wherever the annotation appears.2 min read@Transactional and @Aspect are declared. Here you will see why a call from one method to another in the same class bypasses the proxy, and how to fix it.2 min read@Transactional is the most common use of Spring AOP. It is ordinary around advice applied through a proxy, so the limits of proxies apply to it.2 min read@Aspect and know the difference between JDK and CGLIB proxies from earlier chapters. It shows how to confirm that a bean is proxied, see which advice is attached, and find out why advice did not run.2 min read@Aspect and pointcuts from the earlier chapters. It covers three things: building a proxy without a container, adding interfaces to existing beans, and knowing when proxies are no longer enough.1 min read