Java8设计模式最佳实战-设计模式概述(第四天学习记录)(1)

以及效率。随着时间的推移,这个软件的复杂性随着他们开始

provide a lot of services. As different services demanded more communication, scalability

提供很多服务。由于不同的服务需要更多的通信、可伸缩性

became increasingly important. With this, some problems surfaced.

变得越来越重要。由此,一些问题浮出水面。

Enterprise patterns is a set of solutions for common problems that appear in enterprise

企业模式是针对企业中出现的常见问题的一组解决方案

software as a result of the complexity of enterprise environments. Many enterprise patterns

软件是企业环境复杂性的结果。许多企业模式

are based on GoF patterns and differ only in the way in which we implement them. On Java

是基于GoF模式的,只是我们实现它们的方式不同。在Java上

EE, enterprise patterns are divided into three groups: presentation patterns, business

企业模式分为三类:表示模式、业务模式

patterns, and integration patterns. These patterns act on the presentation tier, business tier,

模式和集成模式。这些模式作用于表示层、业务层,

and integration patterns, and we’ll cover their details in Chapter 2, Presentation Patterns,

以及集成模式,我们将在第2章“表示模式”中详细介绍它们,

which covers presentation patterns, Chapter 3, Business Patterns, which covers business

其中包括表示模式,第3章,业务模式,其中包括业务

patterns, and Chapter 4, Integration Patterns, which covers integration patterns.

模式,第4章,集成模式,包括集成模式。

Enterprise patterns are very important for professionals who create software, because bad

企业模式对于创建软件的专业人员非常重要,因为

practices in the creation of software could inflate the cost and risks involved in the projects.

软件开发的实践可能会增加项目的成本和风险。

Because of the complexity of the enterprise software, an error could propagate along the

由于企业软件的复杂性,错误可能会沿着

time and environment, making the enterprise environment unsustainable

时间和环境,使企业环境难以为继

Defining the difference between design

定义设计之间的差异

patterns and enterprise patterns

模式与企业模式

Comparing design patterns with enterprise patterns is not an easy task, because some

比较设计模式和企业模式不是一件容易的事,因为

behaviors are similar. Design patterns were the first subject that arrived, and this was

行为相似。设计模式是第一个出现的主题,这是

covered in Design Patterns: Elements of Reusable Object-Oriented Software, written by Erich

涵盖了设计模式:可重用面向对象软件的元素,由Erich编写

Gamma, Richard Helm, Ralph Johnson and John Vlissides. These design patterns were also

伽马,理查德·赫尔姆,拉尔夫·约翰逊和约翰·弗利塞德斯。这些设计模式也是

the base to other patterns. Enterprise patterns became necessities that design patterns

其他模式的基础。企业模式成为设计模式的必要条件

cannot resolve. This is because the design patterns describe solutions for of classes and

无法解决。这是因为设计模式描述了of类和

objects relationships, but the enterprise environments have other necessities such as

对象关系,但企业环境有其他必要性,如

integrations between systems and software relations. However, enterprise patterns use

系统和软件关系之间的集成。然而,企业模式使用

some design patterns to solve problems.

一些解决问题的设计模式。

The principal difference between design patterns and enterprise patterns is the aim; design

设计模式和企业模式的主要区别在于目的;设计

patterns aim to organize and optimize the object-oriented design, and enterprise patterns

模式旨在组织和优化面向对象的设计和企业模式

focus on improving the use of Java EE tools as well as making communications between

重点改进javaee工具的使用,以及在

Java EE components better. Design patterns are focused on object-oriented and class and

javaee组件更好。设计模式侧重于面向对象和类

object relations, whereas enterprise patterns are focused on communication between Java

对象关系,而企业模式则侧重于Java之间的通信

EE components

EE组件

The use of design patterns makes it possible to reuse algorithms and also makes the design

设计模式的使用使重用算法成为可能,也使设计成为可能

flexible; enterprise design patterns promote an abstraction of the complexity of Java EE

灵活;企业设计模式促进了对javaee复杂性的抽象

tools and make it easier for the architecture to make changes.

工具,使架构更容易进行更改。

Because of the complexity of architecture, the minimal use of enterprise patterns tends to be

架构学习资料

准备两个月,面试五分钟,Java中高级岗面试为何越来越难?

准备两个月,面试五分钟,Java中高级岗面试为何越来越难?

准备两个月,面试五分钟,Java中高级岗面试为何越来越难?

准备两个月,面试五分钟,Java中高级岗面试为何越来越难?

准备两个月,面试五分钟,Java中高级岗面试为何越来越难?

由于篇幅限制小编,pdf文档的详解资料太全面,细节内容实在太多啦,所以只把部分知识点截图出来粗略的介绍,每个小节点里面都有更细化的内容!

外链图片转存中…(img-gFRtkOJY-1714323232120)]

[外链图片转存中…(img-yxgaX53p-1714323232121)]

由于篇幅限制小编,pdf文档的详解资料太全面,细节内容实在太多啦,所以只把部分知识点截图出来粗略的介绍,每个小节点里面都有更细化的内容!

本文已被CODING开源项目:【一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】收录

  • 25
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值