java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Application Controller pattern

Open iluwatar opened this issue 10 years ago • 10 comments

Description: The Application Controller design pattern centralizes the request handling by routing incoming requests to appropriate handlers. This pattern is particularly useful for applications with complex request processing logic, as it decouples the request handling from the request processing, promoting modularity and ease of maintenance. Key elements of this pattern include:

  1. Application Controller: A central controller that handles incoming requests and delegates them to appropriate handlers.
  2. Handlers: Specific components or services that perform the business logic associated with a request.
  3. Request: Represents the client request to be processed.
  4. Response: Represents the outcome of the request processing, which is sent back to the client.
  5. Command: Encapsulates a request as an object, thereby decoupling the sender of a request from its receiver.

References:

Acceptance Criteria:

  1. Implement the Application Controller class that can route incoming requests to appropriate handlers.
  2. Create at least two handler classes demonstrating different business logic processes.
  3. Ensure comprehensive unit tests are written to validate the functionality of the Application Controller and handlers.

iluwatar avatar Jan 16 '16 10:01 iluwatar

I found it here a reference of implementation :
http://www.corej2eepatterns.com/ApplicationController.htm

Daniel-Dos avatar Nov 01 '16 06:11 Daniel-Dos

@iluwatar Is this issue free to take? I'd like to work on this

Meccota avatar Mar 31 '20 19:03 Meccota

@Meccota yes, go ahead

iluwatar avatar Mar 31 '20 20:03 iluwatar

@Meccota are you still working on this?

iluwatar avatar Jul 06 '20 15:07 iluwatar

We would like to give a shot at this in October/November. Could you assign it to me? Thank you!

ghost avatar Oct 16 '21 18:10 ghost

Go ahead @yixingz3

iluwatar avatar Oct 19 '21 17:10 iluwatar

@yixingz3 are you working on this? If not, I'll review the pull request made by @dctrue2

iluwatar avatar Dec 09 '21 19:12 iluwatar

@yixingz3 are you working on this? If not, I'll review the pull request made by @dctrue2

Please feel free to. We are working as a team and I’ve been working on the SLOB issue (#1596).

ghost avatar Dec 09 '21 20:12 ghost