samples/forjoe/src-api1.0/api/InterfaceThatJustJoeCanImplement.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:53:37 +0200
changeset 76 ee4e8d38093e
child 132 3bc4c54f4bcc
permissions -rw-r--r--
Finished review of "are abstract classes useful?", up to line 1600
     1 package api;
     2 
     3 // BEGIN: forjoe.InterfaceThatJustJoeCanImplement
     4 public abstract class InterfaceThatJustJoeCanImplement {
     5     protected InterfaceThatJustJoeCanImplement() {
     6         if (!"impl.joe.JoesImpl".equals(getClass().getName())) {
     7             throw new IllegalStateException("Sorry, you are not allowed to implement this class");
     8         }
     9     }
    10     
    11     public abstract void everyoneCallThisJoeWillHandleTheRequest();
    12 }
    13 // END: forjoe.InterfaceThatJustJoeCanImplement