java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Dynamic proxy pattern

Open iluwatar opened this issue 1 year ago • 6 comments

Proxies are fronts or wrappers that pass function invocation through their own facilities (usually onto real methods) – potentially adding some functionality.

Dynamic proxies allow one single class with one single method to service multiple method calls to arbitrary classes with an arbitrary number of methods.

See https://www.baeldung.com/java-dynamic-proxies

Acceptance criteria

  • Dynamic proxy pattern example added to the library
  • Follows the instructions at https://github.com/iluwatar/java-design-patterns/wiki/01.-How-to-contribute

iluwatar avatar Jun 25 '23 10:06 iluwatar

Hello, I would like to work on this, can it be assigned to me, please

mohamedelghaouth avatar Jul 09 '23 16:07 mohamedelghaouth

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 09 '23 11:09 stale[bot]

Hi, I am happy to work on this. This is another link that I will refer to: https://docs.oracle.com/javase/8/docs/technotes/guides/reflection/proxy.html

Let me know if it makes sense. Please assign to me when you are able to.

pkkht avatar Sep 23 '23 03:09 pkkht

@mohamedelghaouth are you working on this? If not, please indicate so we can progress on it.

iluwatar avatar Sep 23 '23 08:09 iluwatar

Hi, yes, I am working on this, I will try to push ma MR this week-end

mohamedelghaouth avatar Sep 26 '23 15:09 mohamedelghaouth

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 25 '23 16:11 stale[bot]

@iluwatar I have worked with this Dynamic Proxy pattern in the library simple-openai and I know that it has been used in popular libraries such as Spring, Hibernate, Retrofit, etc., so I think I could contribute here. Just let me know if you could assign this issue to me, please?

sashirestela avatar Jan 28 '24 00:01 sashirestela

Hi, yes, I am working on this, I will try to push ma MR this week-end

@mohamedelghaouth have you already pushed a PR?

sashirestela avatar Jan 31 '24 15:01 sashirestela

No sign from @mohamedelghaouth so I'll assign to @sashirestela

iluwatar avatar Feb 10 '24 08:02 iluwatar

Forking the repo and working on this

sashirestela avatar Mar 04 '24 16:03 sashirestela

@iluwatar The PR is ready for you revision https://github.com/iluwatar/java-design-patterns/pull/2814

sashirestela avatar Mar 08 '24 04:03 sashirestela