mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 10:58:42 +00:00
26 lines
610 B
Plaintext
26 lines
610 B
Plaintext
@startuml
|
|
package com.iluwatar.virtual.proxy {
|
|
class App {
|
|
+ App()
|
|
+ main(args : String[]) {static}
|
|
}
|
|
interface ExpensiveObject {
|
|
+ process() {abstract}
|
|
}
|
|
class RealVideoObject {
|
|
- LOGGER : Logger {static}
|
|
+ RealVideoObject()
|
|
- heavyInitialConfiguration()
|
|
+ process()
|
|
}
|
|
class VideoObjectProxy {
|
|
- realVideoObject : RealVideoObject
|
|
+ VideoObjectProxy()
|
|
+ getRealVideoObject() : RealVideoObject
|
|
+ process()
|
|
}
|
|
}
|
|
VideoObjectProxy --> "-realVideoObject" RealVideoObject
|
|
RealVideoObject ..|> ExpensiveObject
|
|
VideoObjectProxy ..|> ExpensiveObject
|
|
@enduml |