摘要:前边的程序好用吧,我觉得比书上写的麻烦的程序强多了,所以还是得用工具的。 终于有了点ejb方面的成就,趁热打铁,现在马上就看第三章。 第一章 开发会话bean 大家都知道了,会话bean又分为状态会话bean和无状态会话bean。 书上总结了他们的共同点是: 1. 两者都可实现javax.ejb.sessionbean接口,因此具有相同的容器回调。容器回调?现在中国的翻译啊! 2. 两者都表示生......
摘要:argouml是一个运行在java1.2虚拟机之上,且是free和opensource的(遵循bsd协议)uml制作工具,其项目主页为http://www.argouml.tigris.org/。 我们最熟悉的商业uml建模工具恐怕就是rational rose了,当然除了它比较昂贵的价格外,伴随着它强大且烦杂的功能其安装下来也要有400m之多;那么argouml有什么独到之处呢,除了安装简便(安......
Inversion of Control (控制倒置)paul hammant 【程序编程相关:
Java安全通信、数字证书及数字证书应用】 翻译:james shen 【推荐阅读:
浮想B/S中的防御】 inversion of control (逆向控制) 是一种用来解决模块(实际上也可以是简单的java类)之间依赖关系.配置及生命周期的设计模式,其中对模块依赖关系的处理是ioc的精华部分. 【扩展信息:
第九章 方法[《.net框架程序设计》读】 摘要 模块依赖 模块之间降低耦合度有以下好处: 增加类的复用程度 使类的测试更加容易 使整个系统更容易组装与配置 说明 运用了ioc模式后我们不需求再自己管理模块之间的依赖关系,只需要声明这中依赖关系由容器去实现这种依赖关系.就好像把对模块之间依赖关系的控制进行了倒置,不再由模块自己来建立这种依赖关系而交给容器(例如picocontainer.spring)去管理. 范例 下面是一个非常简单的例子来说明ioc模式: public interface orange { // methods } public class appleimpl implements apple { private orange orange; public appleimpl(orange orange) { this.orange = orange; } // other methods } public class appleimpl implements apple{ private orange orange; public apple() { this.orange = new orangeimpl(); } // other methods } public class appleimpl implements apple { private static orange orange = orangefactory.getorange(); public apple() { } ...
下一页 摘要:对于如何使用 webrequest 和 webresponse 类在 uri 上生成 post 请求,在微软的 .net 快速入门教程中有详细的描述(http://chs.gotdotnet.com/quickstart/howto/doc/webrequests/clientpost.aspx),简要引用如下: webresponse 类是抽象(在 visual basic 中为 mustinh......