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.
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | |||
---|---|---|---|---|---|---|---|---|
pattern | Pipeline | pipeline | /patterns/pipeline/ | Behavioral |
|
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