2016-08-30 13:29:12 +02:00
|
|
|
@startuml
|
|
|
|
package com.iluwatar.mute {
|
|
|
|
class App {
|
2016-11-26 12:51:06 +01:00
|
|
|
- LOGGER : Logger {static}
|
2016-08-30 13:29:12 +02:00
|
|
|
+ App()
|
|
|
|
- acquireResource() : Resource {static}
|
|
|
|
- closeResource(resource : Resource) {static}
|
|
|
|
+ main(args : String[]) {static}
|
|
|
|
- useOfLoggedMute() {static}
|
|
|
|
- useOfMute() {static}
|
|
|
|
- utilizeResource(resource : Resource) {static}
|
|
|
|
}
|
2016-11-26 12:51:06 +01:00
|
|
|
interface CheckedRunnable {
|
|
|
|
+ run() {abstract}
|
|
|
|
}
|
2016-08-30 13:29:12 +02:00
|
|
|
class Mute {
|
|
|
|
- Mute()
|
|
|
|
+ loggedMute(runnable : CheckedRunnable) {static}
|
|
|
|
+ mute(runnable : CheckedRunnable) {static}
|
|
|
|
}
|
2016-09-18 17:51:09 +03:00
|
|
|
interface Resource {
|
2016-08-30 13:29:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@enduml
|