mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-15 16:14:57 +00:00
feat: anti corruption layer - Issue 1325. (#2777)
* add init impl * add docs * add test * correct tests and specs * add check style corrections * add init impl * add docs * add test * correct tests and specs * add check style corrections * issue_1325: revert accidental damage to the other repos * issue_1325: sort the comments --------- Co-authored-by: Boris Zhguchev <boris.zhguchev@gropyus.com>
This commit is contained in:
1 parent
7034ca5e95
commit
5c47447d9b
19 files changed
+677
No files matched your search
@@ -0,0 +1,25 @@
|
||||
@startuml
|
||||
package com.iluwatar.corruption {
|
||||
class LegacyShop {
|
||||
private Store store;
|
||||
private AntiCorruptionLayer acl;
|
||||
}
|
||||
|
||||
class ModernShop {
|
||||
private Store store;
|
||||
private AntiCorruptionLayer acl;
|
||||
}
|
||||
|
||||
class AntiCorruptionLayer{
|
||||
private LegacyShop legacyShop;
|
||||
private ModernShop modernShop;
|
||||
|
||||
|
||||
}
|
||||
LegacyShop ---> "findOrderInModernSystem" AntiCorruptionLayer
|
||||
ModernShop ---> "findOrderInLegacySystem" AntiCorruptionLayer
|
||||
AntiCorruptionLayer ..|> ModernShop
|
||||
AntiCorruptionLayer ..|> LegacyShop
|
||||
}
|
||||
|
||||
@enduml
|
||||
Reference in new issue
Block a user