GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update URM Version to 1.4.4 and regenerated all puml files · coding0011/java-design-patterns@7d99505

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • abstract-document/etc
    • abstract-document.urm.puml
  • abstract-factory/etc
    • abstract-factory.urm.puml
  • adapter/etc
    • adapter.urm.puml
  • aggregator-microservices/etc
    • aggregator-service.urm.puml
    • inventory-microservice.urm.puml
  • api-gateway/etc
    • api-gateway-service.urm.puml
  • async-method-invocation/etc
    • async-method-invocation.urm.puml
  • bridge/etc
    • bridge.urm.puml
  • builder/etc
    • builder.urm.puml
  • business-delegate/etc
    • business-delegate.urm.puml
  • caching/etc
    • caching.urm.puml
  • callback/etc
    • callback.urm.puml
  • chain/etc
    • chain.urm.puml
  • command/etc
    • command.urm.puml
  • composite/etc
    • composite.urm.puml
  • dao/etc
    • dao.urm.puml
  • data-mapper/etc
    • data-mapper.urm.puml
  • decorator/etc
    • decorator.urm.puml
  • delegation/etc
    • delegation.urm.puml
  • dependency-injection/etc
    • dependency-injection.urm.puml
  • double-checked-locking/etc
    • double-checked-locking.urm.puml
  • double-dispatch/etc
    • double-dispatch.urm.puml
  • event-aggregator/etc
    • event-aggregator.urm.puml
  • event-asynchronous/etc
    • event-asynchronous.urm.puml
  • event-driven-architecture/etc
    • event-driven-architecture.urm.puml
  • execute-around/etc
    • execute-around.urm.puml
  • facade/etc
    • facade.urm.puml
  • factory-kit/etc
    • factory-kit.urm.puml
  • factory-method/etc
    • factory-method.urm.puml
  • feature-toggle/etc
    • feature-toggle.urm.puml
  • fluentinterface/etc
    • fluentinterface.urm.puml
  • flux/etc
    • flux.urm.puml
  • flyweight/etc
    • flyweight.urm.puml
  • front-controller/etc
    • front-controller.urm.puml
  • half-sync-half-async/etc
    • half-sync-half-async.urm.puml
  • hexagonal/etc
    • hexagonal.urm.puml
  • intercepting-filter/etc
    • intercepting-filter.urm.puml
  • interpreter/etc
    • interpreter.urm.puml
  • iterator/etc
    • iterator.urm.puml
  • layers/etc
    • layers.urm.puml
  • lazy-loading/etc
    • lazy-loading.urm.puml
  • mediator/etc
    • mediator.urm.puml
  • memento/etc
    • memento.urm.puml
  • message-channel/etc
    • message-channel.urm.puml
  • model-view-controller/etc
    • model-view-controller.urm.puml
  • model-view-presenter/etc
    • model-view-presenter.urm.puml
  • monad/etc
    • monad.urm.puml
  • monostate/etc
    • monostate.urm.puml
  • multiton/etc
    • multiton.urm.puml
  • mute-idiom/etc
    • mute-idiom.urm.puml
  • mutex/etc
    • mutex.urm.puml
  • naked-objects/etc
    • naked-objects-dom.urm.puml
    • naked-objects-fixture.urm.puml
    • naked-objects-integtests.urm.puml
  • null-object/etc
    • null-object.urm.puml
  • object-pool/etc
    • object-pool.urm.puml
  • observer/etc
    • observer.urm.puml
  • poison-pill/etc
    • poison-pill.urm.puml
  • pom.xml
  • private-class-data/etc
    • private-class-data.urm.puml
  • producer-consumer/etc
    • producer-consumer.urm.puml
  • promise/etc
    • promise.urm.puml
  • property/etc
    • property.urm.puml
  • prototype/etc
    • prototype.urm.puml
  • proxy/etc
    • proxy.urm.puml
  • publish-subscribe/etc
    • publish-subscribe.urm.puml
  • reactor/etc
    • reactor.urm.puml
  • reader-writer-lock/etc
    • reader-writer-lock.urm.puml
  • repository/etc
    • repository.urm.puml
  • resource-acquisition-is-initialization/etc
    • resource-acquisition-is-initialization.urm.puml
  • semaphore/etc
    • semaphore.urm.puml
  • servant/etc
    • servant.urm.puml
  • service-layer/etc
    • service-layer.urm.puml
  • service-locator/etc
    • service-locator.urm.puml
  • singleton/etc
    • singleton.urm.puml
  • specification/etc
    • specification.urm.puml
  • state/etc
    • state.urm.puml
  • step-builder/etc
    • step-builder.urm.puml
  • strategy/etc
    • strategy.urm.puml
  • template-method/etc
    • template-method.urm.puml
  • thread-pool/etc
    • thread-pool.urm.puml
  • tolerant-reader/etc
    • tolerant-reader.urm.puml
  • twin/etc
    • twin.urm.puml
  • value-object/etc
    • value-object.urm.puml
  • visitor/etc
    • visitor.urm.puml

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎abstract-document/etc/abstract-document.urm.puml‎

Copy file name to clipboard
+21-21Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
11
@startuml
22
package com.iluwatar.abstractdocument.domain {
3-
class Part {
4-
+ Part(properties : Map<String, Object>)
3+
class Car {
4+
+ Car(properties : Map<String, Object>)
55
}
6-
interface HasPrice {
6+
interface HasModel {
77
+ PROPERTY : String {static}
8-
+ getPrice() : Optional<Number>
8+
+ getModel() : Optional<String>
99
}
1010
interface HasParts {
1111
+ PROPERTY : String {static}
1212
+ getParts() : Stream<Part>
1313
}
14-
class Car {
15-
+ Car(properties : Map<String, Object>)
14+
interface HasPrice {
15+
+ PROPERTY : String {static}
16+
+ getPrice() : Optional<Number>
1617
}
1718
interface HasType {
1819
+ PROPERTY : String {static}
1920
+ getType() : Optional<String>
2021
}
21-
interface HasModel {
22-
+ PROPERTY : String {static}
23-
+ getModel() : Optional<String>
22+
class Part {
23+
+ Part(properties : Map<String, Object>)
2424
}
2525
}
2626
package com.iluwatar.abstractdocument {
27-
class App {
28-
+ App()
29-
+ main(args : String[]) {static}
30-
}
3127
abstract class AbstractDocument {
3228
- properties : Map<String, Object>
3329
# AbstractDocument(properties : Map<String, Object>)
@@ -36,24 +32,28 @@ package com.iluwatar.abstractdocument {
3632
+ put(key : String, value : Object)
3733
+ toString() : String
3834
}
35+
class App {
36+
- LOGGER : Logger {static}
37+
+ App()
38+
+ main(args : String[]) {static}
39+
}
3940
interface Document {
4041
+ children(String, Function<Map<String, Object>, T>) : Stream<T> {abstract}
4142
+ get(String) : Object {abstract}
4243
+ put(String, Object) {abstract}
4344
}
4445
}
45-
AbstractDocument --+ Map
46-
Part ..|> HasType
47-
Part ..|> HasModel
48-
Part ..|> HasPrice
49-
Part --|> AbstractDocument
5046
AbstractDocument ..|> Document
51-
HasPrice --|> Document
52-
HasParts --|> Document
5347
Car ..|> HasModel
5448
Car ..|> HasPrice
5549
Car ..|> HasParts
5650
Car --|> AbstractDocument
57-
HasType --|> Document
5851
HasModel --|> Document
52+
HasParts --|> Document
53+
HasPrice --|> Document
54+
HasType --|> Document
55+
Part ..|> HasType
56+
Part ..|> HasModel
57+
Part ..|> HasPrice
58+
Part --|> AbstractDocument
5959
@enduml
Collapse file

‎abstract-factory/etc/abstract-factory.urm.puml‎

Copy file name to clipboard
+33-32Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@startuml
22
package com.iluwatar.abstractfactory {
33
class App {
4+
- LOGGER : Logger {static}
45
- army : Army
56
- castle : Castle
67
- king : King
@@ -17,58 +18,58 @@ package com.iluwatar.abstractfactory {
1718
- setCastle(castle : Castle)
1819
- setKing(king : King)
1920
}
20-
class OrcKingdomFactory {
21-
+ OrcKingdomFactory()
22-
+ createArmy() : Army
23-
+ createCastle() : Castle
24-
+ createKing() : King
21+
interface Army {
22+
+ getDescription() : String {abstract}
23+
}
24+
interface Castle {
25+
+ getDescription() : String {abstract}
26+
}
27+
class ElfArmy {
28+
~ DESCRIPTION : String {static}
29+
+ ElfArmy()
30+
+ getDescription() : String
2531
}
2632
class ElfCastle {
2733
~ DESCRIPTION : String {static}
2834
+ ElfCastle()
2935
+ getDescription() : String
3036
}
31-
class OrcCastle {
37+
class ElfKing {
3238
~ DESCRIPTION : String {static}
33-
+ OrcCastle()
39+
+ ElfKing()
3440
+ getDescription() : String
3541
}
42+
class ElfKingdomFactory {
43+
+ ElfKingdomFactory()
44+
+ createArmy() : Army
45+
+ createCastle() : Castle
46+
+ createKing() : King
47+
}
48+
interface King {
49+
+ getDescription() : String {abstract}
50+
}
3651
interface KingdomFactory {
3752
+ createArmy() : Army {abstract}
3853
+ createCastle() : Castle {abstract}
3954
+ createKing() : King {abstract}
4055
}
41-
class ElfKing {
56+
class OrcArmy {
4257
~ DESCRIPTION : String {static}
43-
+ ElfKing()
58+
+ OrcArmy()
4459
+ getDescription() : String
4560
}
46-
class ElfArmy {
61+
class OrcCastle {
4762
~ DESCRIPTION : String {static}
48-
+ ElfArmy()
63+
+ OrcCastle()
4964
+ getDescription() : String
5065
}
51-
interface Castle {
52-
+ getDescription() : String {abstract}
53-
}
54-
interface Army {
55-
+ getDescription() : String {abstract}
56-
}
5766
class OrcKing {
5867
~ DESCRIPTION : String {static}
5968
+ OrcKing()
6069
+ getDescription() : String
6170
}
62-
class OrcArmy {
63-
~ DESCRIPTION : String {static}
64-
+ OrcArmy()
65-
+ getDescription() : String
66-
}
67-
interface King {
68-
+ getDescription() : String {abstract}
69-
}
70-
class ElfKingdomFactory {
71-
+ ElfKingdomFactory()
71+
class OrcKingdomFactory {
72+
+ OrcKingdomFactory()
7273
+ createArmy() : Army
7374
+ createCastle() : Castle
7475
+ createKing() : King
@@ -77,12 +78,12 @@ package com.iluwatar.abstractfactory {
7778
App --> "-castle" Castle
7879
App --> "-king" King
7980
App --> "-army" Army
80-
OrcKingdomFactory ..|> KingdomFactory
81+
ElfArmy ..|> Army
8182
ElfCastle ..|> Castle
82-
OrcCastle ..|> Castle
8383
ElfKing ..|> King
84-
ElfArmy ..|> Army
85-
OrcKing ..|> King
86-
OrcArmy ..|> Army
8784
ElfKingdomFactory ..|> KingdomFactory
85+
OrcArmy ..|> Army
86+
OrcCastle ..|> Castle
87+
OrcKing ..|> King
88+
OrcKingdomFactory ..|> KingdomFactory
8889
@enduml
Collapse file

‎adapter/etc/adapter.urm.puml‎

Copy file name to clipboardExpand all lines: adapter/etc/adapter.urm.puml
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
@startuml
22
package com.iluwatar.adapter {
3-
interface BattleShip {
4-
+ fire() {abstract}
5-
+ move() {abstract}
3+
class App {
4+
+ App()
5+
+ main(args : String[]) {static}
66
}
77
class BattleFishingBoat {
8+
- LOGGER : Logger {static}
89
- boat : FishingBoat
910
+ BattleFishingBoat()
1011
+ fire()
1112
+ move()
1213
}
13-
class App {
14-
+ App()
15-
+ main(args : String[]) {static}
14+
interface BattleShip {
15+
+ fire() {abstract}
16+
+ move() {abstract}
1617
}
1718
class Captain {
1819
- battleship : BattleShip
@@ -23,6 +24,7 @@ package com.iluwatar.adapter {
2324
+ setBattleship(battleship : BattleShip)
2425
}
2526
class FishingBoat {
27+
- LOGGER : Logger {static}
2628
+ FishingBoat()
2729
+ fish()
2830
+ sail()
Collapse file

‎aggregator-microservices/etc/aggregator-service.urm.puml‎

Copy file name to clipboard
+17-15Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
@startuml
22
package com.iluwatar.aggregator.microservices {
3-
class ProductInventoryClientImpl {
4-
+ ProductInventoryClientImpl()
5-
+ getProductInventories() : int
3+
class Aggregator {
4+
- informationClient : ProductInformationClient
5+
- inventoryClient : ProductInventoryClient
6+
+ Aggregator()
7+
+ getProduct() : Product
68
}
79
class App {
810
+ App()
911
+ main(args : String[]) {static}
1012
}
11-
interface ProductInventoryClient {
12-
+ getProductInventories() : int {abstract}
13-
}
1413
class Product {
1514
- productInventories : int
1615
- title : String
@@ -20,22 +19,25 @@ package com.iluwatar.aggregator.microservices {
2019
+ setProductInventories(productInventories : int)
2120
+ setTitle(title : String)
2221
}
23-
class Aggregator {
24-
- informationClient : ProductInformationClient
25-
- inventoryClient : ProductInventoryClient
26-
+ Aggregator()
27-
+ getProduct() : Product
22+
interface ProductInformationClient {
23+
+ getProductTitle() : String {abstract}
2824
}
2925
class ProductInformationClientImpl {
26+
- LOGGER : Logger {static}
3027
+ ProductInformationClientImpl()
3128
+ getProductTitle() : String
3229
}
33-
interface ProductInformationClient {
34-
+ getProductTitle() : String {abstract}
30+
interface ProductInventoryClient {
31+
+ getProductInventories() : int {abstract}
32+
}
33+
class ProductInventoryClientImpl {
34+
- LOGGER : Logger {static}
35+
+ ProductInventoryClientImpl()
36+
+ getProductInventories() : int
3537
}
3638
}
37-
Aggregator --> "-inventoryClient" ProductInventoryClient
3839
Aggregator --> "-informationClient" ProductInformationClient
39-
ProductInventoryClientImpl ..|> ProductInventoryClient
40+
Aggregator --> "-inventoryClient" ProductInventoryClient
4041
ProductInformationClientImpl ..|> ProductInformationClient
42+
ProductInventoryClientImpl ..|> ProductInventoryClient
4143
@enduml
Collapse file

‎aggregator-microservices/etc/inventory-microservice.urm.puml‎

Copy file name to clipboard
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@startuml
22
package com.iluwatar.inventory.microservice {
3-
class InventoryController {
4-
+ InventoryController()
5-
+ getProductInventories() : int
6-
}
73
class InventoryApplication {
84
+ InventoryApplication()
95
+ main(args : String[]) {static}
106
}
7+
class InventoryController {
8+
+ InventoryController()
9+
+ getProductInventories() : int
10+
}
1111
}
1212
@enduml
Collapse file

‎api-gateway/etc/api-gateway-service.urm.puml‎

Copy file name to clipboard
+22-22Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,16 @@
11
@startuml
22
package com.iluwatar.api.gateway {
3-
class App {
4-
+ App()
5-
+ main(args : String[]) {static}
6-
}
7-
class PriceClientImpl {
8-
+ PriceClientImpl()
9-
+ getPrice() : String
10-
}
11-
class ImageClientImpl {
12-
+ ImageClientImpl()
13-
+ getImagePath() : String
14-
}
15-
class MobileProduct {
16-
- price : String
17-
+ MobileProduct()
18-
+ getPrice() : String
19-
+ setPrice(price : String)
20-
}
21-
interface ImageClient {
22-
+ getImagePath() : String {abstract}
23-
}
243
class ApiGateway {
254
- imageClient : ImageClient
265
- priceClient : PriceClient
276
+ ApiGateway()
287
+ getProductDesktop() : DesktopProduct
298
+ getProductMobile() : MobileProduct
309
}
10+
class App {
11+
+ App()
12+
+ main(args : String[]) {static}
13+
}
3114
class DesktopProduct {
3215
- imagePath : String
3316
- price : String
@@ -37,12 +20,29 @@ package com.iluwatar.api.gateway {
3720
+ setImagePath(imagePath : String)
3821
+ setPrice(price : String)
3922
}
23+
interface ImageClient {
24+
+ getImagePath() : String {abstract}
25+
}
26+
class ImageClientImpl {
27+
+ ImageClientImpl()
28+
+ getImagePath() : String
29+
}
30+
class MobileProduct {
31+
- price : String
32+
+ MobileProduct()
33+
+ getPrice() : String
34+
+ setPrice(price : String)
35+
}
4036
interface PriceClient {
4137
+ getPrice() : String {abstract}
4238
}
39+
class PriceClientImpl {
40+
+ PriceClientImpl()
41+
+ getPrice() : String
42+
}
4343
}
4444
ApiGateway --> "-imageClient" ImageClient
4545
ApiGateway --> "-priceClient" PriceClient
46-
PriceClientImpl ..|> PriceClient
4746
ImageClientImpl ..|> ImageClient
47+
PriceClientImpl ..|> PriceClient
4848
@enduml

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.