Files
java-design-patterns/dynamic-proxy/etc/dynamic-proxy-classes.puml
T
Sashir Estela f65bb820d8 feature: #2542 Dynamic proxy pattern (#2814)
* #2542 First commit

* #2542 Fixing comments

* #2542 Refactoring code

* #2542 Update Readme

* #2542 Add mockito dependencies

* #2542 Add unit test

* #2542 Fixes for testing

* #2542 Fixing typos

* #2542 Fixing SonarLint issues

* #2542 Fixing code review

---------

Co-authored-by: Sashir Estela <sashirestela@yahoo.com>
Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
2024-03-23 12:34:32 +02:00

36 lines
532 B
Plaintext

@startuml
class A as "App" {
}
interface I as "MyInterface" {
someMethod(args)
otherMethods(args)
}
class P as "Proxy" <<Built-In>> {
{static} DynamicProxy newProxyInstance(\n classLoader,\n interfaces,\n invocationHandler\n)
}
class D as "DynamicProxy" {
someMethod(args)
otherMethods(args)
}
class H as "InvocationHandler" {
invoke(proxy, method, args)
}
class X as "AuxiliarProcessor" {
process(method, args)
}
A -r-> D
I <|.. D : implements
D -r-> H : delegate
H -r-> X : (optional)
@enduml