• 热门专题

《JAVA与模式》之建造模式

作者:java_my_life  发布日期:2012-04-13 11:09:02
Tag标签:JAVA与模式  建造模式  
  • 在阎宏博士的《JAVA与模式》一书中开头是这样描述建造(Builder)模式的:

      建造模式是对象的创建模式。建造模式可以将一个产品的内部表象(internal representation)与产品的生产过程分割开来,从而可以使一个建造过程生成具有不同的内部表象的产品对象。


    产品的内部表象

      一个产品常有不同的组成成分作为产品的零件,这些零件有可能是对象,也有可能不是对象,它们通常又叫做产品的内部表象(internal representation)。不同的产品可以有不同的内部表象,也就是不同的零件。使用建造模式可以使客户端不需要知道所生成的产品有哪些零件,每个产品的对应零件彼此有何不同,是怎么建造出来的,以及怎么组成产品。

    对象性质的建造

      有些情况下,一个对象会有一些重要的性质,在它们没有恰当的值之前,对象不能作为一个完整的产品使用。比如,一个电子邮件有发件人地址、收件人地址、主题、内容、附录等部分,而在最起码的收件人地址得到赋值之前,这个电子邮件不能发送。

      有些情况下,一个对象的一些性质必须按照某个顺序赋值才有意义。在某个性质没有赋值之前,另一个性质则无法赋值。这些情况使得性质本身的建造涉及到复杂的商业逻辑。这时候,此对象相当于一个有待建造的产品,而对象的这些性质相当于产品的零件,建造产品的过程是建造零件的过程。由于建造零件的过程很复杂,因此,这些零件的建造过程往往被“外部化”到另一个称做建造者的对象里,建造者对象返还给客户端的是一个全部零件都建造完毕的产品对象。

      建造模式利用一个导演者对象和具体建造者对象一个个地建造出所有的零件,从而建造出完整的产品对象。建造者模式将产品的结构和产品的零件的建造过程对客户端隐藏起来,把对建造过程进行指挥的责任和具体建造者零件的责任分割开来,达到责任划分和封装的目的。 

    建造模式的结构

      

      在这个示意性的系统里,最终产品Product只有两个零件,即part1和part2。相应的建造方法也有两个:buildPart1()和buildPart2()、同时可以看出本模式涉及到四个角色,它们分别是:

      抽象建造者(Builder)角色:给 出一个抽象接口,以规范产品对象的各个组成成分的建造。一般而言,此接口独立于应用程序的商业逻辑。模式中直接创建产品对象的是具体建造者 (ConcreteBuilder)角色。具体建造者类必须实现这个接口所要求的两种方法:一种是建造方法(buildPart1和 buildPart2),另一种是返还结构方法(retrieveResult)。一般来说,产品所包含的零件数目与建造方法的数目相符。换言之,有多少 零件,就有多少相应的建造方法。

      具体建造者(ConcreteBuilder)角色:担任这个角色的是与应用程序紧密相关的一些类,它们在应用程序调用下创建产品的实例。这个角色要完成的任务包括:1.实现抽象建造者Builder所声明的接口,给出一步一步地完成创建产品实例的操作。2.在建造过程完成后,提供产品的实例。

      导演者(Director)角色:担任这个角色的类调用具体建造者角色以创建产品对象。应当指出的是,导演者角色并没有产品类的具体知识,真正拥有产品类的具体知识的是具体建造者角色。

      产品(Product)角色:产品便是建造中的复杂对象。一般来说,一个系统中会有多于一个的产品类,而且这些产品类并不一定有共同的接口,而完全可以是不相关联的。

      

      导演者角色是与客户端打交道的角色。导演者将客户端创建产品的请求划分为对各个零件的建造请求,再将这些请求委派给具体建造者角色。具体建造者角色是做具体建造工作的,但是却不为客户端所知。

      一般来说,每有一个产品类,就有一个相应的具体建造者类。这些产品应当有一样数目的零件,而每有一个零件就相应地在所有的建造者角色里有一个建造方法。

    源代码

     产品类Product


    public class Product {
        /**
         * 定义一些关于产品的操作
         */
        private String part1;
        private String part2;
        public String getPart1() {
            return part1;
        }
        public void setPart1(String part1) {
            this.part1 = part1;
        }
        public String getPart2() {
            return part2;
        }
        public void setPart2(String part2) {
            this.part2 = part2;
        }
    }
    
    

    抽象建造者类Builder

    public interface Builder {
        public void buildPart1();
        public void buildPart2();
        public Product retrieveResult();
    }
    
    

    具体建造者类ConcreteBuilder
    public class ConcreteBuilder implements Builder {
    
        private Product product = new Product();
        /**
         * 产品零件建造方法1
         */
        @Override
        public void buildPart1() {
            //构建产品的第一个零件
         product.setPart1("编号:9527");
        }
        /**
         * 产品零件建造方法2
         */
        @Override
        public void buildPart2() {
            //构建产品的第二个零件
         product.setPart2("名称:XXX");
        }
        /**
         * 产品返还方法
         */
        @Override
        public Product retrieveResult() {
            return product;
        }
    
    }
    
    

    导演者类Director

    public class Director {
        /**
         * 持有当前需要使用的建造器对象
         */
        private Builder builder;
        /**
         * 构造方法,传入建造器对象
         * @param builder 建造器对象
         */
        public Director(Builder builder){
            this.builder = builder;
        }
        /**
         * 产品构造方法,负责调用各个零件建造方法
         */
        public void construct(){
            builder.buildPart1();
            builder.buildPart2();
        }
    }
    
    

    客户端类Client

    public class Client {
        public static void main(String[]args){
            Builder builder = new ConcreteBuilder();
            Director director = new Director(builder);
            director.construct();
            Product product = builder.retrieveResult();
            System.out.println(product.getPart1());
            System.out.println(product.getPart2());
        }
    }
    
    

    时序图

    Ruby8DKjY4MY7sl5sU/ox/3oA4GCYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJaYDHc15oqNd2S9oLsDwJZms1mPX60W7OTkpJdlDmA2mw39S3uS8MYW0d0BYFKYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILREoAYFqYt3shvECkBACmhXm7F8ILFJaSu7u7d+/e7WdEAIBN6O69EF6gXVNyf39/dXV1dXV1f3+/z3EBANaju/dCeIG2T8nj4+OHDx/Oz8/v7u72Py4AwHp0914IL9CWKfn06dPp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IcQF3JSAk0IOeQhDwHUFcyPjcJDcg5JCHPAdR1dwAAxKO7AwAgDd0dAABp1HV3zt9AA3IOSchzAHXdnWsvoQE5hyTkOYC6kpESaEDOIQl5DqCuZKQEGpBzSEKeA6grGSmBBuQckpDnAOpKRkqgATmHJOQ5gLqSkRJoQM4hCXkOoK5kpAQakHNIQp4D/D8cNrmkAz+fqwAAAABJRU5ErkJggg==" style="display: block; margin-left: auto; margin-right: auto" />

      客户端负责创建导演者和具体建造者对象。然后,客户端把具体建造者对象交给导演者,导演者操作具体建造者,开始创建产品。当产品完成后,建造者把产品返还给客户端。

      把创建具体建造者对象的任务交给客户端而不是导演者对象,是为了将导演者对象与具体建造者对象的耦合变成动态的,从而使导演者对象可以操纵数个具体建造者对象中的任何一个。


    使用场景

      假设有一个电子杂志系统,定期地向用户的电子邮件信箱发送电子杂志。用户可以通过网页订阅电子杂志,也可以通过网页结束订阅。当客户开始订阅时,系统发送一个电子邮件表示欢迎,当客户结束订阅时,系统发送一个电子邮件表示欢送。本例子就是这个系统负责发送“欢迎”和“欢送”邮件的模块。

      在本例中,产品类就是发给某个客户的“欢迎”和“欢送”邮件,如下图所示。

      虽然在这个例子里面各个产品类均有一个共同的接口,但这仅仅是本例子特有的,并不代表建造模式的特点。建造模式可以应用到具有完全不同接口的产品类上。大多数情况下是不知道最终构建出来的产品是什么样的,所以在标准的建造模式里面,一般是不需要对产品定义抽象接口的,因为最终构造的产品千差万别,给这些产品定义公共接口几乎是没有意义的。

      下图所示就是这个系统的类图。

      QTrmow0TQ/et6oq2T3PcybJcwuKHyFkNsQBQUWm148oivqT2/X/10jIMFy5yOh4Ln7r9XquoUTes16vR33GZAmsViulVBiGQRDgL1LzDIVEed7036Io4jju2Wbrf6F5SKpwWCHJLKz8Fj9HL88JeG/J8cCKkHNAfSlNHMdxHEdRlOe5aE+aplVVidhkWYbUB3Ecb6qc5Xlu5MBrb6C02huSoesLVVVFUVRVlSRYQDGktTNNU+TVQ/4g9ZVXNssyqc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nz5+Gbbe5vLx8enpabQhsjYB8koEhz3PJSSLyoy8D3Y+jhVNpscryPA/DUE+BIpImeVfwXz0EDMI2GVHWlBYRDQKsR0Qzsqfhpx5NsC05u2Ru6alQSqhridyEGDFGYha9kO37szQofrNxeXlpe

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规