Content deleted Content added
better wikilink, clarify maintenance |
|||
Line 1:
[[file:Interceptor.VSD Example.png|thumb|upright=1.6|Example of an interceptor]]
In the field of [[software development]], an '''interceptor pattern''' is a
Key aspects of the pattern are that the change is ''transparent'' and used ''automatically''. In essence, the rest of the systems does not have to know something has been added or changed and can keep working as before. To facilitate this, a ''predefined interface'' for extension has to be implemented, some kind of ''dispatching'' mechanism is required where interceptors are registered (this may be dynamic, at runtime, or static, e.g. through configuration files) and ''context objects'' are provided, which allow access to the frameworks internal state.<ref name="POSA2">[http://www.cs.wustl.edu/~schmidt/POSA/POSA2/ Schmidt, Stal, Rohnert & Buschmann: "Pattern-Oriented Software Architecture Vol.2: Patterns for Concurrent and Networked Objects", pp. 109--140, April 2001]</ref>
Line 10:
An example of implementation of this pattern is the ''javax.servlet.Filter'' interface, which is part of [[Java Platform, Enterprise Edition]].
[[Aspect-oriented programming
== References ==
|