| author | Jaroslav Tulach <jtulach@netbeans.org> |
| Sat Feb 20 18:20:10 2010 +0100 | |
| changeset 347 | 481fbbbcc7b7 |
| parent 153 | b5cbb797ec0a |
| permissions | -rw-r--r-- |
| 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@154 | 7 |
throw new IllegalStateException( |
| jtulach@154 | 8 |
"Sorry, you are not allowed to implement this class" |
| jtulach@154 | 9 |
); |
| jtulach@76 | 10 |
} |
| jtulach@76 | 11 |
} |
| jtulach@76 | 12 |
|
| jtulach@76 | 13 |
public abstract void everyoneCallThisJoeWillHandleTheRequest(); |
| jtulach@76 | 14 |
} |
| jtulach@76 | 15 |
// END: forjoe.InterfaceThatJustJoeCanImplement |