mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 22:58:36 +00:00
f65bb820d8
* #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>
36 lines
532 B
Plaintext
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
|