Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.85 KB

File metadata and controls

33 lines (23 loc) · 1.85 KB

What is Proxy Design Pattern

  • Proxy means ‘on behalf of’ or 'representing’ or ‘in place of’ are literal meanings of proxy and that directly explains Proxy Design Pattern.
  • A proxy is a wrapper or agent object that is being called by the client to access the real serving object behind the scenes.

Diagram

Diagram

Diagram

When to use Proxy Design Pattern (Problem statement / Candidate application)

  • When creation of object is expensive or heavy weight, which means, when a deep object graph is required in the object creation process, then a high weigh proxy objects
  • With basic required fields is created and used until the actual object is not required.

Learn Design Patterns with Java by Aseem Jain

This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain".

Course link:

https://www.packtpub.com/application-development/learn-design-patterns-java-9-video

Authors blog on design patterns:

https://premaseem.wordpress.com/category/computers/design-patterns/

Software Design pattern community face book page:

https://www.facebook.com/DesignPatternGuru/

Note:

  • This code base will work on Java 9 and above versions.
  • diagrams folders carry UML diagrams.
  • pattern folder has code of primary example.
  • patternBonus folder has code of secondary or bonus example.