Linuxer, ex IBMer. GNU https://hmchzb19.github.io/
全部博文(297)
发布时间:2017-02-17 10:38:57
指一个对象,要经过一系列的handler 来处理,例如java 的try catch block 里面去catch 不同的Exception. Usage in JDK:java.util.logging.Logger#log()javax.servlet.Filter #doFilter()代码:点击(此处)折叠或打开package chainofresponsibility;//Th.........【阅读全文】
发布时间:2017-02-16 11:20:53
调解人 调停The major participants of the Mediator pattern are:Mediator: Defines an interface for communicating with Colleague objects.ConcreteMediator: implements cooperative behavior by coordinating Colleague objects,it also knows and maintains its colleagues.Colleague Classes: Each Colleague .........【阅读全文】
发布时间:2017-02-15 10:25:46
Template pattern 是很容易理解的,父类只声明一些函数,并不去实现,具体的实现让子类去自己实现。Usage in jdk: All non-abstract methods of java.io.InputStream, java.io.OutputStream, java.io.Reader and java.io.Writer 。 点击(此处)折叠或打开package template;.........【阅读全文】
发布时间:2017-02-14 12:07:30
This Pattern is used to extend the functionality of an object dynamically without having to change the original class source or using inheritance. This is accomplished by creating an object wrapperreferred to as Decorator around the actual object. Component Interface: The interface or .........【阅读全文】
发布时间:2017-02-13 11:17:17
According to GoF definition: bridge pattern is ,decouple an abstraction from its implementation so that the two can vary independently. 我实在是理解无力, 还是看code吧。Usage in Jdk:AWT (It provides an abstraction layer which maps onto the native OS the windowing support)JDBC.........【阅读全文】
fireboyz20052010-11-10 18:27
HI, 看到你"http://bbs.chinaunix.net/viewthread.php?tid=1806065"
这里的提问,你是不是在看一本叫《Shell脚本专家指南》的书?我也在阅读,我新手,不如大家交流一下,看到不明白也可以大家一起研究研究。
我的qq是:369035906
或gtalk:jiale.chan@gmail.com