Abstract
The Filter Design pattern describes how objects can intercept requests for a target object and carry out some activity before the target object receives that request. In general a Filter will pass the request onto the next object in the filter chain. If that object is another filter this object can also perform some processing on the request etc. until the target object is reached. In this pattern the target object is unaware of the presence of the filters. Once the target object returns a response, that response may also be processed by the filter in the chain (in reverse order).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Reference
Buschmann, F., Meunier, R., Rohnert, H., Sommerlad, P., & Stal, M. (1996). Pattern-oriented software architecture – A system of patterns. New York: Wiley. ISBN 0-471-95869-7.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Hunt, J. (2013). Filter. In: Scala Design Patterns. Springer, Cham. https://doi.org/10.1007/978-3-319-02192-8_26
Download citation
DOI: https://doi.org/10.1007/978-3-319-02192-8_26
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-02191-1
Online ISBN: 978-3-319-02192-8
eBook Packages: Computer ScienceComputer Science (R0)