Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1734179
  • 博文数量: 297
  • 博客积分: 285
  • 博客等级: 二等列兵
  • 技术积分: 3006
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-06 22:04
个人简介

Linuxer, ex IBMer. GNU https://hmchzb19.github.io/

文章分类

全部博文(297)

文章存档

2020年(11)

2019年(15)

2018年(43)

2017年(79)

2016年(79)

2015年(58)

2014年(1)

2013年(8)

2012年(3)

发布时间: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 .........【阅读全文】

阅读(513) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(452) | 评论(0) | 转发(0)

发布时间:2017-02-12 10:05:31

这个东西主要是为了提供一个统一的接口,然后为了解耦用的。 同时也同时也带来了代码的复杂度。使得代码的流水线长,wrapper太多,实际干活的代码不好找。usage in jvm:in javax.faces.context, ExternalContext internally use ServletContext, HttpSession, HttpServletRequest, HttpServletResponse, etc, It .........【阅读全文】

阅读(558) | 评论(0) | 转发(0)

发布时间:2017-02-11 10:36:41

Proxy Pattern 说白了就是用一个object 去控制另外一个object的access. Usage in JDK:java.lang.reflect.Proxy.java.rmi.*(whole package)看代码比看理论舒服多了.点击(此处)折叠或打开package proxy;interface IFolder{  &nb.........【阅读全文】

阅读(403) | 评论(0) | 转发(0)

发布时间:2017-02-10 11:36:16

Composite pattern 在你需要tree 的时候,会是选择之一。The Composite Pattern allows you to compose object into a tree structure to represent the part-whole hierarchy which means you can create a tree of objects that is made of different parts.but that can be treated as a whole one big thi.........【阅读全文】

阅读(414) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

fireboyz20052010-11-10 18:27

HI, 看到你"http://bbs.chinaunix.net/viewthread.php?tid=1806065"

这里的提问,你是不是在看一本叫《Shell脚本专家指南》的书?我也在阅读,我新手,不如大家交流一下,看到不明白也可以大家一起研究研究。

我的qq是:369035906
或gtalk:jiale.chan@gmail.com

回复  |  举报
留言热议
请登录后留言。

登录 注册