Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What are the different scenarios for using Proxy design pattern?

Pragya Keshap answered on December 30, 2022 Popularity 2/10 Helpfulness 3/10

Contents


More Related Answers

  • Creating a Proxy Object
  • proxy settings
  • Proxy in Config
  • proxy design pattern
  • proxy Reflect (can be used for validation)
  • proxy pattern vs decorator pattern
  • Explain the term Proxy?
  • What are the examples of Proxy design pattern in JDK?
  • What is the main difference between Adapter and Proxy design pattern?
  • HTTP Proxy integrations and Mock Integrations
  • Describe Proxy Design Pattern. Where we can find already implemented Proxy Design Pattern in Spring?
  • proxy settings
  • 16. What is the Proxy design pattern and how is it used in Java?

  • What are the different scenarios for using Proxy design pattern?

    0

    Proxy design pattern can be used in a wide variety of scenario in

    Java. Some of these are as follows:

    1. Virtual Proxy: This is a virtual object that acts as a proxy

    for objects that are very expensive to create. It is used in

    Lazy Loading. When client makes the first request, the real

    object is created.

    2. Remote Proxy: This is a local object that provides access

    to a remote object. It is generally used in Remote Method

    Invocation (RMI) and Remote Procedure Call (RPC). It is

    also known as a Stub.

    3. Protective Proxy: This is an object that control the access

    to a Master object. It can authenticate and authorize the

    client for accessing the Master object. If client has right

    permissions, it allows client to access the main object.

    4. Smart Proxy: It is an object that can add additional

    information to the main object. It can track the number of

    other objects accessing the main object. It can track the

    different clients from where request is coming. It can even

    deny access to an object if the number of requests is

    greater than a threshold.

    https://www.geeksforgeeks.org/proxy-design-pattern/

    Popularity 2/10 Helpfulness 3/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    1
    Popularity 10/10 Helpfulness 2/10 Language whatever
    Source: Grepper
    Tags: proxy prox
    Link to this answer
    Share Copy Link
    Contributed on Dec 30 2022
    Deepika Sahu
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.