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
     1 
     2 package api;
     3 
     4 // BEGIN: instanceof.InstanceProvider
     5 public interface InstanceProvider {
     6     public Class<?> instanceClass() throws Exception;
     7     public Object instanceCreate() throws Exception;
     8 }
     9 // END: instanceof.InstanceProvider