This commit is contained in:
Ilkka Seppälä
2019-12-13 21:09:28 +02:00
parent 0335c61512
commit b2b1ba95eb
127 changed files with 282 additions and 450 deletions

View File

@ -5,9 +5,7 @@ folder: pipeline
permalink: /patterns/pipeline/
categories: Behavioral
tags:
- Java
- Functional
- Difficulty-Intermediate
- Decoupling
---
## Intent
@ -19,13 +17,13 @@ Allows processing of data in a series of stages by giving in an initial input an
## Applicability
Use the Pipeline pattern when you want to
* execute individual stages that yields a final value
* add readability to complex sequence of operations by providing a fluent builder as an interface
* improve testability of code since stages will most likely be doing a single thing, complying to the [Single Responsibility Principle (SRP)](https://java-design-patterns.com/principles/#single-responsibility-principle)
* Execute individual stages that yields a final value
* Add readability to complex sequence of operations by providing a fluent builder as an interface
* Improve testability of code since stages will most likely be doing a single thing, complying to the [Single Responsibility Principle (SRP)](https://java-design-patterns.com/principles/#single-responsibility-principle)
## Typical Use Case
* implement stages and execute them in an ordered manner
* Implement stages and execute them in an ordered manner
## Real world examples