Fork me on GitHub
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 96 下一页
摘要: 定义 状态模式(State Pattern)又称为状态对象模式,该模式允许一个对象在其内部状态改变的时候改变行为。 英文:Allow an object to alert its behavior when its internal state changes.The object will app 阅读全文
posted @ 2018-04-26 15:42 秋夜雨巷 阅读(219) 评论(0) 推荐(0)
摘要: 定义 访问者(Visitor Pattern)的目的是封装一些施加于某种数据结构元素之上的操作,即使这些操作需要修改,接收这个操作的数据结构却可以保持不变。 英文原话:Represent an operation to be performed on the elements of an objec 阅读全文
posted @ 2018-04-26 11:46 秋夜雨巷 阅读(256) 评论(0) 推荐(0)
摘要: 定义 备忘录模式(Memento Pattern)又称为快照(Snapshot)模式或Token模式。 英文原话:Without violating encapsulation,capture and externalize an object's internal state so that th 阅读全文
posted @ 2018-04-25 16:53 秋夜雨巷 阅读(236) 评论(0) 推荐(0)
摘要: 定义 观察者(Observer Pattern)模式也称为发布订阅模式,它是一种在项目中经常使用的模式。 英文原话:Define a one-to-many dependency between objects so that when one object changes state,all it 阅读全文
posted @ 2018-04-25 11:21 秋夜雨巷 阅读(245) 评论(0) 推荐(0)
摘要: 定义 中介者模式(Mediator)也称调停者模式,是一种比较简单的模式。 英文:Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keeping 阅读全文
posted @ 2018-04-24 14:40 秋夜雨巷 阅读(243) 评论(0) 推荐(0)
摘要: 模板方法(Template Pattern)定义一个操作中的算法的框架,而将一些步骤延迟到子类中,使得子类可以不改变一个算法的结构即可重新定义该算法某些特定步骤。 命令模式(Command)是一种高内聚的模式,将一个请求封装成一个对象,从而使用不通的请求把客户端参数化,对于请求排队或者记录请求日志, 阅读全文
posted @ 2018-04-23 07:54 秋夜雨巷 阅读(248) 评论(0) 推荐(0)
摘要: 定义 迭代器模式(Iterator Pattern)是使用率最高的几个模式之一,被广泛地应用到Java的API中。例如:Java的集合(Collection)框架中,就广泛使用迭代器来遍历集合中元素。 英文原话:Provide a way to access the elements of an a 阅读全文
posted @ 2018-04-23 07:48 秋夜雨巷 阅读(253) 评论(0) 推荐(0)
摘要: 官网下载文件 https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.54/bin/ 文中CentOS使用apache-tomcat-7.0.54.tar.gz,windows需要注册为服务时下载exe文件。 解压缩 # mkdir /usr/loc 阅读全文
posted @ 2018-04-21 15:28 秋夜雨巷 阅读(675) 评论(0) 推荐(0)
摘要: 关闭SELINUX ##查看SELINUX状态 /usr/sbin/sestatus -v getenforce #修改config配置文件,重启后即可 vi /etc/selinux/config #SELINUX=enforcing改为SELINUX=disabled #临时关闭(不用重启机器) 阅读全文
posted @ 2018-04-20 20:51 秋夜雨巷 阅读(1135) 评论(0) 推荐(0)
摘要: 定义 策略模式(Strategy Pattern)也叫政策模式,是一种比较简单的模式。 英文原话:Define a family of algorithms,encapsulate each one,and make them interchangeable. 翻译:定义一组算法,将每个算法都封装起 阅读全文
posted @ 2018-04-20 15:00 秋夜雨巷 阅读(347) 评论(0) 推荐(0)
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 96 下一页