samples/forjoe/src-api1.0/api/InterfaceThatJustJoeCanImplement.java
author Jaroslav Tulach <jtulach@netbeans.org>
Fri Apr 06 10:00:19 2012 +0200
changeset 387 00a0b7267dce
parent 153 b5cbb797ec0a
permissions -rw-r--r--
Use fixed update center for NetBeans IDE 7.1.1
     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(
     8                 "Sorry, you are not allowed to implement this class"
     9             );
    10         }
    11     }
    12     
    13     public abstract void everyoneCallThisJoeWillHandleTheRequest();
    14 }
    15 // END: forjoe.InterfaceThatJustJoeCanImplement