- 浏览: 101484 次
- 性别:
- 来自: 北京
最新评论
文章列表
接口A:
packagecom.jerry.design.adapter2.imp;
publicinterfaceInterfaceA {
publicvoidtestA();
}
接口B:
packagecom.jerry.design.adapter2.imp;
publicinterfaceInterfaceB {
publicvoidtestB();
}
实现类A:
packagecom.jerry.design.adapter2.impl;
impor ...
单项适配器模式:
原接口:
packagecom.jerry.design.adapter1.imp;
publicinterfaceInterfaceA {
publicvoidtestA();
}
接口实现类:
packagecom.jerry.design.adapter1.impl;
importcom.jerry.design.adapter1.imp.InterfaceA;
publicclassImplAimplementsInterfaceA{
@Overr ...
- 2012-02-20 11:20
- 浏览 650
- 评论(0)
单项适配器模式:
原接口:
packagecom.jerry.design.adapter1.imp;
publicinterfaceInterfaceA {
publicvoidtestA();
}
接口实现类:
packagecom.jerry.design.adapter1.impl;
importcom.jerry.design.adapter1.imp.InterfaceA;
publicclassImpl ...
packagecom.jerry.design.facade.imp;
publicinterfaceFacadeImp {
publicvoidtest();
publicvoidtestA();
publicvoidtestB();
publicvoidtestC();
}
实现类A:
packagecom.jerry.design.facade.impl;
importcom.jerry.design.facade.imp.FacadeImp;
...
- 2012-02-20 11:19
- 浏览 621
- 评论(0)
packagecom.jerry.design.facade.imp;
publicinterfaceFacadeImp {
publicvoidtest();
publicvoidtestA();
publicvoidtestB();
publicvoidtestC();
}
实现类A:
packagecom.jerry.design.facade.impl;
importcom.jerry.design.facade.imp.FacadeImp;
publi ...
接口类:
packagecom.jerry.design.simpleFactory.imp;
/**
*
*@authorjerry
*
*/
publicinterfaceinterfaceTest {
publicvoidtest(String name);
}
实现类A:
packagecom.jerry.design.simpleFactory.impl;
importcom.jerry.design.simpleFactory.imp.interfaceTe ...
- 2012-02-20 11:18
- 浏览 520
- 评论(0)
接口类:
packagecom.jerry.design.simpleFactory.imp;
/**
*
*@authorjerry
*
*/
publicinterfaceinterfaceTest {
publicvoidtest(String name);
}
实现类A:
packagecom.jerry.design.simpleFactory.impl;
importcom.jerry.design.simpleFactory.imp.interfaceTest;
...