mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 20:59:07 +00:00
ab59dfe770
* Added Microservices client side ui composition to the repo. Added ClientSideCompositionTest, ApiGateway, ClientSideIntegrator, FrontendComponent, CartFrontend, ProductFrontend, updated pom.xml, ReadME.md. * Improved some checkstyle changes. * Added Random variable to re-use the random instead of creating it everytime in FrontendComponent. * changed the Pom.xml and upadted the ReadME.md * Changes in the README.md File as per requirement, name of the file changed from ReadME.md to README.md --------- Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
32 lines
761 B
Plaintext
32 lines
761 B
Plaintext
@startuml client_side_ui_composition_updated
|
|
skinparam classAttributeIconSize 0
|
|
|
|
class ApiGateway {
|
|
+registerRoute(path: String, component: FrontendComponent)
|
|
+handleRequest(path: String, params: Map<String, String>): String
|
|
}
|
|
|
|
class FrontendComponent {
|
|
+fetchData(params: Map<String, String>): String
|
|
#getData(params: Map<String, String>): String
|
|
}
|
|
|
|
class ProductFrontend {
|
|
+getData(params: Map<String, String>): String
|
|
}
|
|
|
|
class CartFrontend {
|
|
+getData(params: Map<String, String>): String
|
|
}
|
|
|
|
class ClientSideIntegrator {
|
|
+composeUI(path: String, params: Map<String, String>)
|
|
}
|
|
|
|
ApiGateway --> FrontendComponent
|
|
FrontendComponent <|-- ProductFrontend
|
|
FrontendComponent <|-- CartFrontend
|
|
ClientSideIntegrator --> ApiGateway
|
|
|
|
@enduml
|