1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/primitiveconstants/src-api2.0/api/API.java Sat Jun 14 09:50:51 2008 +0200
1.3 @@ -0,0 +1,15 @@
1.4 +package api;
1.5 +
1.6 +public abstract class API {
1.7 + // BEGIN: theory.binary.constants.api2
1.8 + public static final int VERSION = 2;
1.9 + // END: theory.binary.constants.api2
1.10 +
1.11 + protected API() {
1.12 + System.err.println("Initializing version " + VERSION);
1.13 + init(API.VERSION);
1.14 + System.err.println("Properly initialized: " + this);
1.15 + }
1.16 +
1.17 + protected abstract void init(int version) throws IllegalStateException;
1.18 +}