java-design-patterns/mute-idiom/etc/mute-idiom.urm.puml
2019-12-07 18:03:49 +02:00

24 lines
569 B
Plaintext

@startuml
package com.iluwatar.mute {
class App {
- LOGGER : Logger {static}
+ App()
- acquireResource() : Resource {static}
- closeResource(resource : Resource) {static}
+ main(args : String[]) {static}
- useOfLoggedMute() {static}
- useOfMute() {static}
- utilizeResource(resource : Resource) {static}
}
interface CheckedRunnable {
+ run() {abstract}
}
class Mute {
- Mute()
+ loggedMute(runnable : CheckedRunnable) {static}
+ mute(runnable : CheckedRunnable) {static}
}
interface Resource {
}
}
@enduml