samples/forjoe/src-api1.0/api/InterfaceThatJustJoeCanImplement.java
changeset 76 ee4e8d38093e
child 132 3bc4c54f4bcc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/forjoe/src-api1.0/api/InterfaceThatJustJoeCanImplement.java	Sat Jun 14 09:53:37 2008 +0200
     1.3 @@ -0,0 +1,13 @@
     1.4 +package api;
     1.5 +
     1.6 +// BEGIN: forjoe.InterfaceThatJustJoeCanImplement
     1.7 +public abstract class InterfaceThatJustJoeCanImplement {
     1.8 +    protected InterfaceThatJustJoeCanImplement() {
     1.9 +        if (!"impl.joe.JoesImpl".equals(getClass().getName())) {
    1.10 +            throw new IllegalStateException("Sorry, you are not allowed to implement this class");
    1.11 +        }
    1.12 +    }
    1.13 +    
    1.14 +    public abstract void everyoneCallThisJoeWillHandleTheRequest();
    1.15 +}
    1.16 +// END: forjoe.InterfaceThatJustJoeCanImplement