The Practical API Design book comes with huge amount of additional sources. All of them, including their history, are available online. This page provides basic information for those who want to study them.
In order to use the sample sources you may need:
- JDK 1.6.0 - necessary for compilation and execution
- Ant 1.8.1 - allows simple compilation and execution from command line
- NetBeans IDE 6.9 - all projects are configured to smoothly open in NetBeans IDE
The sources for sample examples are processed, verified and published daily on API Design continuous build server. Download the latest version of apidesign-XYZ.zip, unzip it on your local computer. Start NetBeans IDE and open individual projects as needed. History of all the modifications can be found in our Mercurial repository. To obtain them use:
hg clone http://source.apidesign.org/hg/apidesign/
You need to run build.xml before opening the projects in the IDE. Otherwise the projects have unsolvable broken references.
The build fails on JDK 1.5 because of ServiceLoader usages. This needs to be mentioned somewhere, and build.xml should perhaps skip that example when building on 1.5.