GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-design-patterns/pipeline at master · nidecai/java-design-patterns

Expand file tree

/

pipeline

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

pipeline

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
etc
etc
 
 
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline
layout pattern
title Pipeline
folder pipeline
permalink /patterns/pipeline/
categories Behavioral
tags
Decoupling

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.

Class diagram

alt text

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

  • java.util.Stream
  • Maven Build Lifecycle
  • Functional Java

Credits

  • The Pipeline Pattern — for fun and profit
  • The Pipeline design pattern (in Java)
  • Pipelines | Microsoft Docs
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.