1.1 --- a/samples/aserverinfo/src/org/apidesign/aserverinfo/builder/ServerInfo.java Sat Nov 15 08:39:01 2008 +0100
1.2 +++ b/samples/aserverinfo/src/org/apidesign/aserverinfo/builder/ServerInfo.java Sat Nov 15 13:12:46 2008 +0100
1.3 @@ -6,16 +6,13 @@
1.4 import org.apidesign.aserverinfo.spi.URLProvider;
1.5
1.6 /**
1.7 + * Cumulative factory methods for the builder pattern
1.8 *
1.9 * @author Jaroslav Tulach <jtulach@netbeans.org>
1.10 */
1.11 +// BEGIN: aserverinfo.builder.factory
1.12 public class ServerInfo {
1.13
1.14 - //
1.15 - // cumulative factory methods for the builder pattern
1.16 - //
1.17 -
1.18 - // BEGIN: aserverinfo.builder.factory
1.19 public static ServerInfo empty() {
1.20 return new ServerInfo(null, null, null, null);
1.21 }
1.22 @@ -47,7 +44,7 @@
1.23 public final ServerConnector connect() {
1.24 return new ServerConnector(name, url, reset, shutdown);
1.25 }
1.26 - // END: aserverinfo.builder.factory
1.27 + // FINISH: aserverinfo.builder.factory
1.28
1.29 private final NameProvider name;
1.30 private final URLProvider url;
2.1 --- a/samples/aserverinfo/src/org/apidesign/aserverinfo/cummulativefactory/ServerConnector.java Sat Nov 15 08:39:01 2008 +0100
2.2 +++ b/samples/aserverinfo/src/org/apidesign/aserverinfo/cummulativefactory/ServerConnector.java Sat Nov 15 13:12:46 2008 +0100
2.3 @@ -8,7 +8,7 @@
2.4
2.5 // BEGIN: aserverinfo.api
2.6 /** A class to connect to server, identify it and manipulate with
2.7 - * it state. The <a href="http://apidesign.org">Practical API Design</a>
2.8 + * its state. The <a href="http://apidesign.org">Practical API Design</a>
2.9 * book used to call it AServerInfo.
2.10 * <p>
2.11 */