samples/instanceof/src/api/InstanceProvider.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 10:03:34 +0200
changeset 191 c8a7c6621b5f
parent 74 84353f1cb4bc
child 209 1c999569643b
permissions -rw-r--r--
Jesse wanted to have better example of InstanceProvider. Done, but it is also more complicated: http://wiki.apidesign.org/index.php/A_Method_Addition_Lover's_Heaven
jtulach@74
     1
jtulach@74
     2
package api;
jtulach@74
     3
jtulach@74
     4
// BEGIN: instanceof.InstanceProvider
jtulach@74
     5
public interface InstanceProvider {
jtulach@191
     6
    public Class<?> instanceClass() throws Exception;
jtulach@191
     7
    public Object instanceCreate() throws Exception;
jtulach@74
     8
}
jtulach@74
     9
// END: instanceof.InstanceProvider