Tom DeMille
Tom DeMille

Reputation: 3277

What is a good design-pattern for a configurable series of steps

-Given a series of x number (unknown) steps,

-all of which implement the same interface,

-and where the order of the steps is desired to be configurable,

can anyone suggest a good design pattern?

Upvotes: 2

Views: 1065

Answers (3)

Nicole Calinoiu
Nicole Calinoiu

Reputation: 20992

Chain of responsibility is the usual candidate for this sort of thing, coupled with some variation on the inversion of control theme for initial construction of the chain according to the "configured" sequence.

Upvotes: 1

SWeko
SWeko

Reputation: 30892

Command and/or Decorator

Upvotes: 0

Nix
Nix

Reputation: 58522

Chain of Responsibliity

Generally 1 person handles the chain, but its not to say that multiple things couldn't handle the request.

Upvotes: 3

Related Questions