mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-05 02:19:47 +00:00
* #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>
This commit is contained in:
co-authored by
Sashir Estela
Ilkka Seppälä
parent
4b704c807f
commit
f65bb820d8
@@ -0,0 +1,35 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user