Context Object pattern #233
Open
Comments
|
Do you have a reference book or link describing the pattern? |
|
This is the official description of the pattern |
|
The Context Object Simply hides implementation details from clients in a particular context and their invocation in a protocol specific system |
|
Well, Singleton simply ensures that a single instance will exists. |
ekostadinov
pushed a commit
to ekostadinov/java-design-patterns
that referenced
this issue
Sep 2, 2015
ekostadinov
pushed a commit
to ekostadinov/java-design-patterns
that referenced
this issue
Sep 2, 2015
ekostadinov
pushed a commit
to ekostadinov/java-design-patterns
that referenced
this issue
Sep 2, 2015
added real world examples
|
a.k.a. Ambient Context, Scope https://aabs.wordpress.com/2007/12/31/the-ambient-context-design-pattern-in-net/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This pattern helps avoid using protocol-specific system information outside of its relevant context. It forces only the relevant APIs to be exposed and decouples the components and services from the protocol specifics of system information. We use it to encapsulate state in a protocol-independent way to be shared throughout the application.
The text was updated successfully, but these errors were encountered: