| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  | @startuml | 
					
						
							|  |  |  | package com.iluwatar.aggregator.microservices { | 
					
						
							| 
									
										
										
										
											2016-11-26 12:51:06 +01:00
										 |  |  |   class Aggregator { | 
					
						
							|  |  |  |     - informationClient : ProductInformationClient | 
					
						
							|  |  |  |     - inventoryClient : ProductInventoryClient | 
					
						
							|  |  |  |     + Aggregator() | 
					
						
							|  |  |  |     + getProduct() : Product | 
					
						
							| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2016-09-18 17:51:09 +03:00
										 |  |  |   class App { | 
					
						
							|  |  |  |     + App() | 
					
						
							|  |  |  |     + main(args : String[]) {static} | 
					
						
							| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  |   } | 
					
						
							|  |  |  |   class Product { | 
					
						
							|  |  |  |     - productInventories : int | 
					
						
							|  |  |  |     - title : String | 
					
						
							|  |  |  |     + Product() | 
					
						
							|  |  |  |     + getProductInventories() : int | 
					
						
							|  |  |  |     + getTitle() : String | 
					
						
							|  |  |  |     + setProductInventories(productInventories : int) | 
					
						
							|  |  |  |     + setTitle(title : String) | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2016-11-26 12:51:06 +01:00
										 |  |  |   interface ProductInformationClient { | 
					
						
							|  |  |  |     + getProductTitle() : String {abstract} | 
					
						
							| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2016-09-18 17:51:09 +03:00
										 |  |  |   class ProductInformationClientImpl { | 
					
						
							| 
									
										
										
										
											2016-11-26 12:51:06 +01:00
										 |  |  |     - LOGGER : Logger {static} | 
					
						
							| 
									
										
										
										
											2016-09-18 17:51:09 +03:00
										 |  |  |     + ProductInformationClientImpl() | 
					
						
							|  |  |  |     + getProductTitle() : String | 
					
						
							| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2016-11-26 12:51:06 +01:00
										 |  |  |   interface ProductInventoryClient { | 
					
						
							|  |  |  |     + getProductInventories() : int {abstract} | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   class ProductInventoryClientImpl { | 
					
						
							|  |  |  |     - LOGGER : Logger {static} | 
					
						
							|  |  |  |     + ProductInventoryClientImpl() | 
					
						
							|  |  |  |     + getProductInventories() : int | 
					
						
							| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | Aggregator -->  "-informationClient" ProductInformationClient | 
					
						
							| 
									
										
										
										
											2016-11-26 12:51:06 +01:00
										 |  |  | Aggregator -->  "-inventoryClient" ProductInventoryClient | 
					
						
							| 
									
										
										
										
											2016-09-18 17:51:09 +03:00
										 |  |  | ProductInformationClientImpl ..|> ProductInformationClient  | 
					
						
							| 
									
										
										
										
											2016-11-26 12:51:06 +01:00
										 |  |  | ProductInventoryClientImpl ..|> ProductInventoryClient  | 
					
						
							| 
									
										
										
										
											2016-08-30 13:29:12 +02:00
										 |  |  | @enduml |