java-design-patterns
java-design-patterns copied to clipboard
Context Object pattern
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.
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.
https://www.dre.vanderbilt.edu/~schmidt/PDF/Context-Object-Pattern.pdf
a.k.a. Ambient Context, Scope
https://aabs.wordpress.com/2007/12/31/the-ambient-context-design-pattern-in-net/
Can I take on this issue?
Ok @Chak-C
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.