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