mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 22:16:03 +00:00
UML generation: Mark the urm-maven-plugin execution to be ignored in Eclipse and recreate all .puml files
This commit is contained in:
1 parent
b030cd4eba
commit
6026eedd51
78 files changed
+1676
-1609
No files matched your search
@@ -1,25 +1,10 @@
|
||||
@startuml
|
||||
package com.iluwatar.servicelocator {
|
||||
interface Service {
|
||||
+ execute() {abstract}
|
||||
+ getId() : int {abstract}
|
||||
+ getName() : String {abstract}
|
||||
}
|
||||
class InitContext {
|
||||
+ InitContext()
|
||||
+ lookup(serviceName : String) : Object
|
||||
}
|
||||
class ServiceLocator {
|
||||
- serviceCache : ServiceCache {static}
|
||||
- ServiceLocator()
|
||||
+ getService(serviceJndiName : String) : Service {static}
|
||||
}
|
||||
class ServiceCache {
|
||||
- serviceCache : Map<String, Service>
|
||||
+ ServiceCache()
|
||||
+ addService(newService : Service)
|
||||
+ getService(serviceName : String) : Service
|
||||
}
|
||||
class App {
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
@@ -32,6 +17,21 @@ package com.iluwatar.servicelocator {
|
||||
+ getId() : int
|
||||
+ getName() : String
|
||||
}
|
||||
class InitContext {
|
||||
+ InitContext()
|
||||
+ lookup(serviceName : String) : Object
|
||||
}
|
||||
class ServiceCache {
|
||||
- serviceCache : Map<String, Service>
|
||||
+ ServiceCache()
|
||||
+ addService(newService : Service)
|
||||
+ getService(serviceName : String) : Service
|
||||
}
|
||||
interface Service {
|
||||
+ execute() {abstract}
|
||||
+ getId() : int {abstract}
|
||||
+ getName() : String {abstract}
|
||||
}
|
||||
}
|
||||
ServiceLocator --> "-serviceCache" ServiceCache
|
||||
ServiceImpl ..|> Service
|
||||
|
||||
Reference in new issue
Block a user