author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:58:08 +0200 | |
changeset 153 | b5cbb797ec0a |
parent 132 | 3bc4c54f4bcc |
child 154 | 0fd5e9c500b9 |
permissions | -rw-r--r-- |
1 package api;
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 }
11 public abstract void everyoneCallThisJoeWillHandleTheRequest();
12 }
13 // END: forjoe.InterfaceThatJustJoeCanImplement