<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title>设计模式</title>
<link>/html/edu/jsp/jsp7/index.html</link>
<description>编程开发 / JSP / 设计模式</description>
<language>zh-cn</language>
<generator>&lt;a href='http://www.souzz.net' target='_blank'&gt;搜站长&lt;/a&gt;</generator>
<webmaster>lyjrich@sina.com</webmaster>
<item>
    <title>用Reflection实现Visitor模式</title>
    <link>/html/edu/jsp/jsp7/3896.html</link>
    <description>概述 Visitor模式的常用之处在于，它将对象集合的结构和对集合所执行的操作分离开来。例如，它可以将一个编译器中的分析逻辑和代码生成逻辑分离开来。有了这样的分离，想使用不同的代码生成器就会很容易。更大的好处还有，其它一些公用程序，如lint，可以在使用分析逻辑</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>使用Factory Method模式</title>
    <link>/html/edu/jsp/jsp7/3895.html</link>
    <description>Q: 阅读 &quot;Polymorphism in its purest form&quot; 一文时，我看到了一个不熟悉的术语 &quot;Factory method&quot;。你能解释一下什么是Factory method并说明如何使用它吗？ A: Factory method(工厂方法)只不过是实例化对象的一种方法的名称。就象工厂一样，Factory method的任务是创建-</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>Java Tip: 实现Command模式（2）</title>
    <link>/html/edu/jsp/jsp7/3894.html</link>
    <description>Command模式实现Transaction Command模式也被称为action(动作)模式或transaction(事务)模式。假设有一个服务器，它接收并处理客户通过TCP/IP socket连接发送的transaction。这些transaction包含一个命令，后跟零个或多个 参数。 一些设计者可能会使用switch语句，每个co</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>Java Tip: 实现Command模式（1）</title>
    <link>/html/edu/jsp/jsp7/3893.html</link>
    <description>概述 有时需要向对象发送请求，但是不知道 &quot;被请求的操作&quot; 或 &quot;请求的接受者&quot; 的任何信息。在面向过程的程序设计语言中，这类通信是通过回调函数来完成的：在某个地方登记这个函数，然后在后面调用它。在面向对象程序中，command(命令)与回调函数等价，它封装了回调函数</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>简析J2EE应用程序数据库类设计模式</title>
    <link>/html/edu/jsp/jsp7/3892.html</link>
    <description>本文主要介绍一种数据库相关类的设计模式。并介绍在J2EE框架中的具体实现，以及在事务处理方面的一些考虑。 一、设计模式简介 在开发J2EE应用程序时，通常是要找出应用程序中涉及到的各种信息，比如一个公司的产品目录，或一个网站的用户信息，我们会将这些信息放在数据</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>在EJB环境中实现“观察者”模式</title>
    <link>/html/edu/jsp/jsp7/3891.html</link>
    <description>在EJB环境中实现“观察者”模式 Observer模式（“观察者”模式）或许是降低对象结合程度的最佳方法之一。例如，在编写一个典型的应用程序时，你可能决定提供一个工厂或管理器触发适当的事件，以这些事件的一组监听器的形式提供分离的业务逻辑；此后，系统的启动类就在</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>EJB设计模式</title>
    <link>/html/edu/jsp/jsp7/3890.html</link>
    <description>第一个设计模式非常简单。一个公司和雇员的Entity Bean和下面给出的Entity Bean的代码片断是类似的。它们是由jbuilder4的 EntityBean模版生成的。所有的字段都声明为public的cmp字段。 Code snippet for Company Entity Bean public class CompanyBean implements Enti</description>
    <pubDate>2005-10-23</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>Builder Pattern(Builder 模式）</title>
    <link>/html/edu/jsp/jsp7/1210.html</link>
    <description>Builder模式与Factory模式好象没有什么太大的区别, 可能区别是Builder模式不仅可用于创建复杂的算法，而且可以创建复杂的界面（将对象的构建和它的表示分离开来）。 以下是来自xmltutorial中的一个例子（其中还用到了Adapter模式） packagejdeveloper.xml; importjavax</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>ChinaJavaWorld</comments>
</item>
<item>
    <title>decorator 模式</title>
    <link>/html/edu/jsp/jsp7/1209.html</link>
    <description>600) this.width=screen.width-600&quot;&gt; decoratorfornon-visualableclasse.g.java.io.* TheclassFilterInputStreamitselfsimplyoverridesallmethodsofInputStreamwithversionsthatpassallrequeststotheunderlyinginputstream.SubclassesofFilterInputStreammayfurtherove</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>Prototype 模式</title>
    <link>/html/edu/jsp/jsp7/1208.html</link>
    <description>模式描述: Prototype模式用于创建对象，尤其是当创建对象需要许多时间和资源时。 在Java中，Prototype模式的实现是通过方法clone(),该方法定义在Java的根对象Object中， 因此，Java中的其他对象只要覆盖它就行了。通过clone(),我们可以从一个对象获得更多的对象， 并请</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>Factory模式和Abstract Factory模式</title>
    <link>/html/edu/jsp/jsp7/1207.html</link>
    <description>Factory模式 利用给Factory对象传递不同的参数，以返回具有相同基类或实现了同一接口的对象。 AbstractFactory模式 先利用Factory模式返回Factory对象，在通过Factory对象返回不同的对象！ Java中的例子-----JAXP1.0.1： 以下是用SimpleAPIforXML(SAX)ParseXML文件的片</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>ChinaJavaWorld</comments>
</item>
<item>
    <title>Adapter 模式</title>
    <link>/html/edu/jsp/jsp7/1206.html</link>
    <description></description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>ChinaJavaWorld</comments>
</item>
<item>
    <title>Singleton模式</title>
    <link>/html/edu/jsp/jsp7/1205.html</link>
    <description>Singleton模式主要作用是保证在Java应用程序中，一个Class只有一个实例存在。 一般有三种方法： 1 定义一个类，它的构造函数为private的，所有方法为static的。如java.lang.Math 其他类对它的引用全部是通过类名直接引用。例如： publicfinalclassMath{ /** *Don'tletan</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>
<item>
    <title>Commend模式</title>
    <link>/html/edu/jsp/jsp7/1204.html</link>
    <description>用途: 1 将一个请求封装为一个对象，实现请求的顺序控制、选择和时序控制 2 实现对请求的Undo和Redo操作 3 需要进行请求的日志操作 结构： 解说： Client -- MainApplet Invoker-- Button Invoker Command -- ActionListener Execute-- actionPerformed() ConcreteComm</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>ChinaJavaWorld</comments>
</item>
<item>
    <title>使用 Translator 模式构建更好的网站</title>
    <link>/html/edu/jsp/jsp7/1203.html</link>
    <description>本文介绍 Translator 模式，并说明如何在 JSP 技术和 servlet 环境中使用 Translator 模式。读完本文以后，您将能够利用本文提供的代码示例成功实现这一模式 在使用 JSP 文件和 servlet 构建 Web 应用程序时，应用程序的界面多半会是 HTML。浏览器翻译后的 HTML 就是一</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>Bell</author>
    <comments>ChinaJavaWorld</comments>
</item>
<item>
    <title>走下神坛的设计模式--设计模式入门</title>
    <link>/html/edu/jsp/jsp7/1202.html</link>
    <description>走下神坛的设计模式--设计模式入门 首先，为什么要有设计模式，主要的目的就是软件重用了。辛辛苦苦写的代码，没怎么用就扔掉，不是太可惜了么。但是代码质量太差，用了 会出错也不行。所以我们要尽量写出可以重用的代码。 我们的目标就是代码重用和维护方便，说白了，</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>ChinaJavaWorld</comments>
</item>
<item>
    <title>类的设计方法</title>
    <link>/html/edu/jsp/jsp7/1201.html</link>
    <description>1)类名首字母应该大写。字段、方法以及对象（句柄）的首字母应小写。对于所有标识符，其中包含的所有单词都应紧靠在一起，而且大写中间单词的首字母。例如： ThisIsAClassName thisIsMethodOrFieldName 若在定义中出现了常数初始化字符，则大写staticfinal基本类型标识</description>
    <pubDate>2005-08-24</pubDate>
    <category>设计模式</category>
    <author>未知</author>
    <comments>搜站长搜集</comments>
</item>

</channel>
</rss>
