#1113 Add uml-reverse-mapper plugin
This commit is contained in:
		
							
								
								
									
										27
									
								
								mutex/etc/mutex.urm.puml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								mutex/etc/mutex.urm.puml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| @startuml | ||||
| package com.iluwatar.mutex { | ||||
|   class App { | ||||
|     + App() | ||||
|     + main(args : String[]) {static} | ||||
|   } | ||||
|   class Jar { | ||||
|     - beans : int | ||||
|     - lock : Lock | ||||
|     + Jar(beans : int, lock : Lock) | ||||
|     + takeBean() : boolean | ||||
|   } | ||||
|   interface Lock { | ||||
|     + acquire() {abstract} | ||||
|     + release() {abstract} | ||||
|   } | ||||
|   class Mutex { | ||||
|     - owner : Object | ||||
|     + Mutex() | ||||
|     + acquire() | ||||
|     + getOwner() : Object | ||||
|     + release() | ||||
|   } | ||||
| } | ||||
| Jar -->  "-lock" Lock | ||||
| Mutex ..|> Lock  | ||||
| @enduml | ||||
		Reference in New Issue
	
	Block a user