O'Reilly logo
  • Marco Shimomoto thinks this is interesting:

Interceptors are used to interpose on business method invocations. In this aspect, it is similar to aspect-oriented programming (AOP). AOP is a programming paradigm that separates cross-cutting concerns (concerns that cut across the application) from your business code. Most applications have common code that is repeated across components. These could be technical concerns (log the entry and exit from each method, log the duration of a method invocation, store statistics of method usage, etc.) or business concerns (perform additional checks if a customer buys more than $10,000 of items, send a refill order when the inventory level is too low, etc.). These concerns can be applied automatically through AOP to your e...

From

Cover of Beginning Java EE 7

Note

J2EE Interceptors