Reputation: 3277
-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
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
Reputation: 58522
Generally 1 person handles the chain, but its not to say that multiple things couldn't handle the request.
Upvotes: 3