mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-29 22:23:41 +00:00
5c47447d9b
* 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>
25 lines
524 B
Plaintext
25 lines
524 B
Plaintext
@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 |