mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 18:58:44 +00:00
abbc33295d
* feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern iluwatar#2940 * feature: Implement Virtual Proxy pattern iluwatar#2940 * refactoring: proxy/pom.xml
30 lines
647 B
Plaintext
30 lines
647 B
Plaintext
@startuml
|
|
class Client {
|
|
+ main(args : String[]) {static}
|
|
}
|
|
|
|
class RealVideoObject {
|
|
- videoData : String
|
|
+ RealVideoObject()
|
|
+ process()
|
|
+ getVideoData() : String
|
|
- heavyInitialConfiguration() : void
|
|
}
|
|
|
|
interface ExpensiveObject {
|
|
+ process() {abstract}
|
|
}
|
|
|
|
class VideoObjectProxy {
|
|
- realVideoObject : RealVideoObject
|
|
+ VideoObjectProxy()
|
|
+ process()
|
|
+ setRealVideoObject(realVideoObject : RealVideoObject) : void
|
|
+ getRealVideoObject() : RealVideoObject
|
|
}
|
|
|
|
VideoObjectProxy --> "-realVideoObject" RealVideoObject
|
|
RealVideoObject ..|> ExpensiveObject
|
|
VideoObjectProxy ..|> ExpensiveObject
|
|
@enduml
|