11@startuml
22package com . iluwatar . aggregator . microservices {
3- class Aggregator {
4- - informationClient : ProductInformationClient
5- - inventoryClient : ProductInventoryClient
6- + Aggregator ()
7- + getProduct () : Product
3+ class ProductInventoryClientImpl {
4+ + ProductInventoryClientImpl ()
5+ + getProductInventories () : int
86 }
9- class ProductInformationClientImpl {
10- + ProductInformationClientImpl ()
11- + getProductTitle () : String
7+ class App {
8+ + App ()
9+ + main(args : String[]) {static}
1210 }
13- interface ProductInformationClient {
14- + getProductTitle () : String {abstract }
11+ interface ProductInventoryClient {
12+ + getProductInventories () : int {abstract }
1513 }
1614 class Product {
1715 - productInventories : int
@@ -22,20 +20,22 @@ package com.iluwatar.aggregator.microservices {
2220 + setProductInventories(productInventories : int)
2321 + setTitle(title : String)
2422 }
25- class ProductInventoryClientImpl {
26- + ProductInventoryClientImpl ()
27- + getProductInventories () : int
23+ class Aggregator {
24+ - informationClient : ProductInformationClient
25+ - inventoryClient : ProductInventoryClient
26+ + Aggregator ()
27+ + getProduct () : Product
2828 }
29- class App {
30- + App ()
31- + main(args : String[]) {static}
29+ class ProductInformationClientImpl {
30+ + ProductInformationClientImpl ()
31+ + getProductTitle () : String
3232 }
33- interface ProductInventoryClient {
34- + getProductInventories () : int {abstract }
33+ interface ProductInformationClient {
34+ + getProductTitle () : String {abstract }
3535 }
3636}
3737Aggregator --> "- inventoryClient " ProductInventoryClient
3838Aggregator --> "- informationClient " ProductInformationClient
39- ProductInformationClientImpl ..|> ProductInformationClient
4039ProductInventoryClientImpl ..|> ProductInventoryClient
40+ ProductInformationClientImpl ..|> ProductInformationClient
4141@enduml
0 commit comments