摘要:前边的程序好用吧,我觉得比书上写的麻烦的程序强多了,所以还是得用工具的。 终于有了点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 (控制倒置)上一页 ... // other methods 这里的问题在于:你依赖orangleimpl来具体实现orange接口,这样apple类就缺乏足够的灵活性.这些代码都是硬写的,不能被复用更不能通过一个classloader来生成不同的实例. 【程序编程相关:
Java安全通信、数字证书及数字证书应用】 } 【推荐阅读:
浮想B/S中的防御】 模块的配置 【扩展信息:
第九章 方法[《.net框架程序设计》读】 有时我们的配置如下: public class bigfatcomponent { string config01; string config02; public bigfatcomponent() { resourcefactory resources = new resourcefactory(new file("mycomp.properties")); config01 = resources.get("config01"); config02 = resources.get("config02"); } // other methods } 使用了ioc模式可以优化如下: public class bigfatcomponent { string config01; string config02; public bigfatcomponent(string config01, string config02) { this.config01 = config01; this.config02 = config02; } // other methods } ...
下一页 摘要:对于如何使用 webrequest 和 webresponse 类在 uri 上生成 post 请求,在微软的 .net 快速入门教程中有详细的描述(http://chs.gotdotnet.com/quickstart/howto/doc/webrequests/clientpost.aspx),简要引用如下: webresponse 类是抽象(在 visual basic 中为 mustinh......