Christopher O'Connell dd5997b495 993: Fixed the pipeines project layout so that it will load in Eclipse (#1004)
The source directory was not working in the 2019.09 version of Eclipse. The
problem was in the layout of the project: after the src/main/java and
src/test/java, the directory was naed com.iluwatar.pipeline. It should've
been com/iluwatar/pipeline. This follows the hierarchy of all of the other
patterns.

Once these files were moved, the Pipeline project compiled without errors.
2019-10-15 19:21:07 +03:00
..
2019-10-12 20:05:54 +03:00
2019-10-08 09:19:28 +03:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Pipeline pipeline /patterns/pipeline/ Behavioral
Java
Functional
Difficulty-Intermediate

Intent

Allows processing of data in a series of stages by giving in an initial input and passing the processed output to be used by the next stages.

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)

Typical Use Case

  • implement stages and execute them in an ordered manner

Real world examples

Credits