@Test public void test(){ //new UserImpl(); /* ProxyT proxy=new ProxyT(new UserImpl()); proxy.add(); proxy.update();*/ final User user=new UserI...
分类:
编程语言 时间:
2014-06-26 00:14:14
阅读次数:
260
【创建型】1、单例模式(Singleton Pattern) 2、工厂方法模式(Factory Method Pattern)3、抽象工厂(Abstract Factory Pattern)4、建造者模式(Builder Pattern) 5、原型模式(Prototype Pattern) 【结构型...
分类:
编程语言 时间:
2014-06-25 21:18:34
阅读次数:
247
模板方法模式(template method pattern) JFrame 详解本文地址: http://blog.csdn.net/caroline_wendy参考模板方法模式(template method pattern): http://blog.csdn.net/caroline_wendy/article/details/32159455模板方法模式(template method ...
分类:
其他好文 时间:
2014-06-22 21:36:47
阅读次数:
283
Observer Pattern 是一种常用的设计模式,它是一种事件监听模型,...
分类:
编程语言 时间:
2014-06-22 20:57:04
阅读次数:
279
前台:
//远程读取设备去向图表数据
var Store1 = new Ext.data.Store({
proxy:{
type:'ajax',
url:'/newmaterial/servlet/GetCountChartGoDatas',
reader:{
type:'array'
}
},
fields:[
"Sys...
分类:
Web程序 时间:
2014-06-22 20:51:18
阅读次数:
314
模板方法模式(template method pattern) 详解本文地址: http://blog.csdn.net/caroline_wendy模板方法模式(template method pattern): 在一个方法中定义一个算法的骨架, 而将一些步骤延迟到子类中. 模板方法使得子类可以在不改变算法结构的情况下, 重新定义算法中的某些步骤.模板方法可以进行挂钩(hook), 钩子(hoo...
分类:
其他好文 时间:
2014-06-22 18:49:01
阅读次数:
227
模式匹配的实现,'?'代表单一字符,'*'代表任意多的字符,写代码实现两个字符串是否匹配。
Implement wildcard pattern matching with support for '?' and '*'.、
'?' Matches any single character.
'*' Matches any sequence of characters (inclu...
分类:
其他好文 时间:
2014-06-22 16:40:44
阅读次数:
225
模板方法模式(template method pattern) Applet 详解本文地址: http://blog.csdn.net/caroline_wendy参考模板方法模式(template method pattern): http://blog.csdn.net/caroline_wendy/article/details/32159455模板方法模式(template method ...
分类:
移动开发 时间:
2014-06-22 15:28:58
阅读次数:
176
模板方法模式(template method pattern) 排序(sort) 详解本文地址: http://blog.csdn.net/caroline_wendy参考模板方法模式(template method pattern): http://blog.csdn.net/caroline_wendy/article/details/32159455模板方法模式的一个主要的应用是排序(sor...
分类:
其他好文 时间:
2014-06-22 15:24:51
阅读次数:
231
简单的proxy之TinyHTTPProxy.py如果是在外企工作的话,可以访问美国的机器,这样就可以在美国的机器上为自己装个proxy,然后本地就可以很容易的使用proxy来上网了。TinyHTTPProxy.py :主页:http://www.voidtrance.net/2010/01/sim...
分类:
其他好文 时间:
2014-06-21 15:00:24
阅读次数:
200