mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 08:58:26 +00:00
docs: add front controller architecture diagram
This commit is contained in:
@@ -34,6 +34,11 @@ Wikipedia says
|
||||
|
||||
> The front controller software design pattern is listed in several pattern catalogs and is related to the design of web applications. It is "a controller that handles all requests for a website", which is a useful structure for web application developers to achieve flexibility and reuse without code redundancy.
|
||||
|
||||
Architecture diagram
|
||||
|
||||

|
||||
|
||||
|
||||
## Programmatic Example of Front Controller Pattern in Java
|
||||
|
||||
The Front Controller design pattern is a pattern that provides a centralized entry point for handling all requests in a web application. It ensures that request handling is managed consistently and efficiently across an application.
|
||||
@@ -104,10 +109,6 @@ In this example, when a request is received, the `FrontController` delegates the
|
||||
|
||||
This is a basic example of the Front Controller pattern, where all requests are handled by a single controller and dispatcher, ensuring consistent and efficient request handling.
|
||||
|
||||
## Detailed Explanation of Front Controller Pattern with Real-World Examples
|
||||
|
||||

|
||||
|
||||
## When to Use the Front Controller Pattern in Java
|
||||
|
||||
* The Front Controller design pattern is particularly useful for Java web applications that require a centralized mechanism for request handling.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Reference in New Issue
Block a user