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:
Adelya
2024-05-15 09:53:36 +03:00
committed by GitHub
parent 1f7aaef392
commit abbc33295d
13 changed files with 605 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

+29
View File
@@ -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