Work on #190: Add first batch of automagically generated puml files
This commit is contained in:
35
lazy-loading/etc/lazy-loading.urm.puml
Normal file
35
lazy-loading/etc/lazy-loading.urm.puml
Normal file
@ -0,0 +1,35 @@
|
||||
@startuml
|
||||
package com.iluwatar.lazy.loading {
|
||||
~class HeavyFactory {
|
||||
- heavyInstance : Heavy
|
||||
~ HeavyFactory(this$0 : Java8Holder)
|
||||
+ get() : Heavy
|
||||
}
|
||||
class HolderNaive {
|
||||
- heavy : Heavy
|
||||
+ HolderNaive()
|
||||
+ getHeavy() : Heavy
|
||||
}
|
||||
class Heavy {
|
||||
+ Heavy()
|
||||
}
|
||||
class HolderThreadSafe {
|
||||
- heavy : Heavy
|
||||
+ HolderThreadSafe()
|
||||
+ getHeavy() : Heavy
|
||||
}
|
||||
class Java8Holder {
|
||||
- heavy : Supplier<Heavy>
|
||||
+ Java8Holder()
|
||||
- createAndCacheHeavy() : Heavy
|
||||
+ getHeavy() : Heavy
|
||||
}
|
||||
class App {
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
}
|
||||
HolderThreadSafe --> "-heavy" Heavy
|
||||
HolderNaive --> "-heavy" Heavy
|
||||
HeavyFactory --> "-heavyInstance" Heavy
|
||||
@enduml
|
Reference in New Issue
Block a user