mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-22 02:25:41 +00:00
feat: Feature/virtual proxy (#2955)
* 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
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1,29 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user