mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-18 06:26:18 +00:00
* pattern:implemented the Template View pattern (#1320) * fix:added links in README and updated package name (#1320) --------- Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
co-authored by
Ilkka Seppälä
parent
ebcc070e11
commit
5ba45701bf
@@ -0,0 +1,33 @@
|
||||
@startuml
|
||||
package com.iluwater.templateview {
|
||||
class App {
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
|
||||
abstract class TemplateView {
|
||||
- LOGGER : Logger {static}
|
||||
+ TemplateView()
|
||||
+ render() : void {final}
|
||||
# printHeader() : void
|
||||
# renderDynamicContent() : void {abstract}
|
||||
# printFooter() : void
|
||||
}
|
||||
|
||||
class HomePageView {
|
||||
- LOGGER : Logger {static}
|
||||
+ HomePageView()
|
||||
+ renderDynamicContent() : void
|
||||
}
|
||||
|
||||
class ContactPageView {
|
||||
- LOGGER : Logger {static}
|
||||
+ ContactPageView()
|
||||
+ renderDynamicContent() : void
|
||||
}
|
||||
}
|
||||
|
||||
App --> TemplateView
|
||||
TemplateView <|-- HomePageView
|
||||
TemplateView <|-- ContactPageView
|
||||
@enduml
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Reference in New Issue
Block a user