Unlike HandlerInterceptor
, this chapter has proven that the AOP paradigm is the best mechanism for creating modules that can intercept requests, services, data transactions, security modules, and cache providers. Given the correct concerns and delineation of tasks, a set of @Aspect
classes can optimize the modularity of the MVC application, which enhances the core features of the application. This last recipe will create a simple web application that will simulate a document rendition workflow based on popular enterprise records and document management systems, such as Alfresco.
Let us create a new Maven project, ch05-wf
, to replicate the setup and configuration done in the previous project. Given all the different types of advices and @Pointcut
definitions, we need to implement the following high-level activity diagram from scratch using AOP principle and Spring MVC concepts: