samples/forjoe/src-api1.0/api/InterfaceThatJustJoeCanImplement.java
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--
up to line 2000
jtulach@76
     1
package api;
jtulach@76
     2
jtulach@76
     3
// BEGIN: forjoe.InterfaceThatJustJoeCanImplement
jtulach@76
     4
public abstract class InterfaceThatJustJoeCanImplement {
jtulach@76
     5
    protected InterfaceThatJustJoeCanImplement() {
jtulach@76
     6
        if (!"impl.joe.JoesImpl".equals(getClass().getName())) {
jtulach@153
     7
            throw new IllegalStateException("Sorry, you are not allowed to implement this class");
jtulach@76
     8
        }
jtulach@76
     9
    }
jtulach@76
    10
    
jtulach@76
    11
    public abstract void everyoneCallThisJoeWillHandleTheRequest();
jtulach@76
    12
}
jtulach@76
    13
// END: forjoe.InterfaceThatJustJoeCanImplement