Can you explain the Context design pattern?

Viewed 52143

I've started to read about the Context design pattern. Here's what I understood from the text :

  • you have a map containing all your variables

  • you pass it around to whoever needs it, so that you won't have to send all the variables as method parameters

Did I "get" it?

4 Answers

Context is an anti pattern, since it is used as a container for what is unknown a priori.

Related