★ wanayoo — archive 1999 https://github.com/iluwatar/java-design-patterns/issues/233Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context Object pattern #233

Open
ekostadinov opened this issue Aug 31, 2015 · 6 comments
Open

Context Object pattern #233

ekostadinov opened this issue Aug 31, 2015 · 6 comments

Comments

@ekostadinov
Copy link

@ekostadinov ekostadinov commented Aug 31, 2015

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.

@iluwatar
Copy link
Owner

@iluwatar iluwatar commented Aug 31, 2015

Do you have a reference book or link describing the pattern?

@ekostadinov
Copy link
Author

@ekostadinov ekostadinov commented Aug 31, 2015

This is the official description of the pattern

@geniusgeek
Copy link

@geniusgeek geniusgeek commented Sep 1, 2015

The Context Object Simply hides implementation details from clients in a particular context and their invocation in a protocol specific system

@ekostadinov
Copy link
Author

@ekostadinov ekostadinov commented Sep 1, 2015

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
@npathai
Copy link
Contributor

@npathai npathai commented Feb 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.