* Add simple implementation for strangler pattern. * Add strangler pattern in pom.xml. * change package name * Revert "change package name" This reverts commit430bd9073e
. * Code review for strangler Delete final of method parameters. Add final to private members. Change package name. * Revert "Code review for strangler" This reverts commitd506356708
. * Revert "Revert "Code review for strangler"" This reverts commitc8fd65fda7
. * Remove unnecessary files
61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
@startuml
|
|
|
|
package com.iluwatar.strangler {
|
|
class App {
|
|
+ main(args : String[]) {static}
|
|
}
|
|
|
|
class OldArithmetic {
|
|
- LOGGER : Logger {static}
|
|
- VERSION : String {static}
|
|
- source : OldSource
|
|
+ sum(nums : int...)
|
|
+ mul(nums : int...)
|
|
}
|
|
|
|
class HalfArithmetic {
|
|
- LOGGER : Logger {static}
|
|
- VERSION : String {static}
|
|
- oldSource : OldSource
|
|
- newSource : HalfSource
|
|
+ sum(nums : int...)
|
|
+ mul(nums : int...)
|
|
+ ifHasZero(nums : int...)
|
|
}
|
|
|
|
class NewArithmetic {
|
|
- LOGGER : Logger {static}
|
|
- VERSION : String {static}
|
|
- source : NewSource
|
|
+ sum(nums : int...)
|
|
+ mul(nums : int...)
|
|
+ ifHasZero(nums : int...)
|
|
}
|
|
|
|
class OldSource {
|
|
- LOGGER : Logger {static}
|
|
- VERSION : String {static}
|
|
+ accumulateSum(nums : int...)
|
|
+ accumulateMul(nums : int...)
|
|
}
|
|
|
|
class HalfSource {
|
|
- LOGGER : Logger {static}
|
|
- VERSION : String {static}
|
|
+ accumulateSum(nums : int...)
|
|
+ ifNonZero(nums : int...)
|
|
}
|
|
|
|
class NewSource {
|
|
- LOGGER : Logger {static}
|
|
- VERSION : String {static}
|
|
+ accumulateSum(nums : int...)
|
|
+ accumulateMul(nums : int...)
|
|
+ ifNonZero(nums : int...)
|
|
}
|
|
}
|
|
OldArithmetic o--> OldSource
|
|
HalfArithmetic o--> OldSource
|
|
HalfArithmetic o--> HalfSource
|
|
NewArithmetic o--> NewSource
|
|
@enduml |