Skip to main content

One doc tagged with "Builder Pattern"

View All Tags

构建者模式

构建者模式(Builder Pattern)将一个复杂对象的构建与其表示分离,通过链式方法调用来一步步地创建复杂对象。以一个JDBC配置类JdbcConf为例,其定义如下: