August 2018
Intermediate to advanced
314 pages
8h 9m
English
An Oracle tutorial defines an interceptor as follows:
As previously mentioned, interceptors are generally used for technical tasks, referred to as cross-cutting tasks. This includes auditing, logging, controlling statistics, and so on. These tasks are separate from the business logic, and may be repeated over the entire application. Consequently, we can put the interceptor code into a separate class that is different from the target class that we want to intercept in order to improve code maintenance.
The concept of the interceptor was first introduced in JEE5, and it was only ...
Read now
Unlock full access