Mahipal Nehra

3 years ago · 1 min. reading time · ~10 ·

Blogging
>
Mahipal blog
>
What is the proxy design pattern in Java?

What is the proxy design pattern in Java?

8bfc3133.png

The object oriented Proxy Design Pattern is a structural design pattern which is concerned with how classes and objects compose to form larger structures. The proxy design pattern in java takes a similar approach by providing a proxy object that acts as a placeholder for another object. Commonly a proxy is a class that functions as an interface to something else. The proxy design pattern can be best understood with the help of a real-world example. In computer networks, we usually come across the term proxy server. It is a server application that acts as an intermediary for web requests from the clients. The client, instead of connecting directly to a server, directs its request to the proxy server which performs the intended filtration and other network transaction. The purpose of proxy server is to simplify and control the complexity of the requests by providing additional benefits such as privacy and security. Proxies have been designed to add structure and encapsulation to distributed systems in computer networks.

The Proxy Design Pattern has the same intent has the proxy servers in computer networks. In this article we will define what is proxy design pattern, walk through the implementation and also see what are the benefits of using the proxy design pattern in java.

What is Proxy Design Pattern in Java?

What is the Proxy Design Pattern in Java? The Proxy Design Pattern provides a representative for another object in order to control the client’s access to it. The intent is to provide a placeholder for that object to control access to it. The literal meaning of proxy is “the authority” to represent someone else”. Now, that says a lot of things about the design pattern itself. As exemplified in the introductory paragraph, the proxy could interface to anything, it can be an interface to a network connection, an object in memory, a file or any other resource that is expensive to duplicate. The purpose of the proxy in the object oriented proxy design pattern is to act as a wrapper that is called by the client to get access to the intended object.

Read: “What is the Iterator Design Pattern?

Full article source:  https://www.decipherzone.com/blog-detail/proxy-design-pattern-in-java
Comments

Articles from Mahipal Nehra

View blog
3 years ago · 2 min. reading time

Machine Learning (ML) and Artificial Intelligence (AI) technologies have gained increasing popularit ...

3 years ago · 1 min. reading time

The software development industry progresses through continuous evolution where people try to solve ...

3 years ago · 1 min. reading time

Looking back to the era where there was no internet is quite difficult. With more and more devices c ...

You may be interested in these jobs

  • Olive Trees Consulting

    Web Developer

    Found in: Talent IN 2A C2 - 2 days ago


    Olive Trees Consulting Navi Mumbai, India

    Job Description : · We are looking for a Developer for our fintech client based in Thane West, Mumbai. · Responsibilities : · - Build high-performance distributed applications using asynchronous programming techniques in · This includes UI components and web APIs that work wi ...

  • iimjobs

    Editorial Consultant

    Found in: beBee S2 IN - 2 days ago


    iimjobs Delhi NCR, India Full time

    Monitoring the content creation process · - Responsible for Intranet content, corporate presentations and reports editting to support CSR and sustainability drive at the corporate office. · - Planning, coordinating, and revising material for publication in both the Newsletter · ...

  • Genpact

    Assistant Manager

    Found in: Talent IN 2A C2 - 1 day ago


    Genpact Pune, India

    With a startup spirit and 115,000 + curious and courageous minds, we have the expertise to go deep with the world's biggest brands—and we have fun doing it We dream in digital, dare in reality, and reinvent the ways companies work to make an impact far bigger than just our bottom ...