The Design Patterns Used In PetStore 1. Facade

xiaoxiao2021-03-06  40

.

When a web tier controller receives the requests from the client, it then passes the event to the EJBtier controller, implemented as a session bean, which matches the event to the proper command (Command Pattern). Ultimately, the command invokes the appropriate action on A Session Facade, Which Executes The Business Logic.

The facade encapsulates and hides the complexityof these business objects from clients. In addition, because their implementation details are kept hidden by a facade, the objects can change without affecting the clients.

转载请注明原文地址:https://www.9cbs.com/read-76405.html

New Post(0)