• Home
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • Python
  • Ubuntu
  • Maven
  • Archived
  • About
Design Patterns | Proxy
  1. References
  2. Example
    • The Subject
    • The Real Subject
    • The Proxy
    • A simple class to test the Proxy design pattern

  1. References
    • Definition: (source: http://en.wikipedia.org/wiki/Proxy_pattern)

      A proxy, in its most general form, is a class functioning as an interface to something else.
      The proxy could interface to anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to duplicate.

    • Class diagram: (source: http://en.wikipedia.org/wiki/Proxy_pattern)

      Proxy Pattern
  2. Example
    • The Subject:


    • The Real Subject:


    • The Proxy:


    • A simple class to test the Proxy design pattern:


© 2025  mtitek