This article studys from the IBM Technology Center, prohibiting any reprint!
The mode should be a stable entity. Depending on the definition, a model must appear three or more in software design to determine it as a mode. Common patterns are: business model, web performance mode and J2EE mode. Property Container Mode Property Container is the basic mode. Its function is to ensure that they can be dynamically expanded after building and deploying applications. Briefly, this mode is based on the object-based container, inherits through the interface, and can traverse all objects in the container. See the picture below, very well explained this mode:
Simple Policy Mode Simple Policy mode is similar to the GOF Strategy design mode, but it deals with actual business. The Simple Policy mode allows dynamic settings and implementation of the application's access policy.
For example, a online movie store hopes to implement a strategy - restrict the film level to the minor sales movie. However, the supervisors of the store have not yet developed a strategy, so the "Video Order" application must be flexible enough to easily change the strategy. In addition, the movie level sometimes changes, so when there is an order, the application must be able to consider a new level or standard. All of this means that the rules used to verify specific customers have reached the age of a specific film, should be considered a variable code. When the store policy or the industry level metering system changes, there is no need to recompile the new code, but can easily separate variable code and allow its dynamic changes. This is the essence of Simple Policy model.
Repeated Menu Mode If the page content has to be exceeded, the menu will be repeated on the web page. Although this seems to be a common sense rule, many websites are not observed. It can be easily achieved by tag.
J2EE Design Mode General website, its page flow direction is linear and unidirectional, page data does not change with user input, but this model is unrealistic to enterprise applications. In an enterprise application, the page view is more based on the basic state of page data, not a static model. It is difficult to predict how each user browsing the system. Using the Front Controller mechanism to focus on page management, you can create a more dynamic, more serviceable web application.