From the course: Java EE: Design Patterns and Architecture

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

AOP: The Interceptor pattern

AOP: The Interceptor pattern

From the course: Java EE: Design Patterns and Architecture

Start my 1-month free trial

AOP: The Interceptor pattern

- [Narrator] The Interceptor Pattern is part of the Aspect-orientated Programming paradigm, which aims to add behavior to existing code to solve cross-cutting concerns. Cross-cutting concerns are non-business related concerns, such as logging and security. They do not solve a business problem, but are nevertheless an important part of an application's makeup. The idea is that such concerns should not be addressed at the same time or in the same place as business concerns, and should therefore be separate from the application's business logic. Often, such functionality cuts across application layers and should be addressed away from the main code base. AOP relies on code injection to add the desired behavior or functionality to each point of an existing code base that is identified as a qualifying injection point. The interceptor pattern is one pattern that embraces AOP. By intercepting method calls and executing the desired code before or after the original execution order. Take…

Contents