1 53 54 package org.swixml; 55 56 import java.lang.reflect.InvocationTargetException ; 57 import java.lang.reflect.Method ; 58 import java.util.Collection ; 59 60 66 public interface Factory { 67 68 static final String SETTER_ID = "set"; 69 static final String ADDER_ID = "add"; 70 76 Object newInstance() throws Exception ; 77 78 84 Object newInstance( Object parameter ) throws Exception ; 85 86 96 Object newInstance(Object [] parameter) throws InstantiationException , IllegalAccessException , InvocationTargetException ; 97 98 101 Class getTemplate(); 102 103 106 Collection getSetters(); 107 108 113 Method getSetter( Class template ); 114 115 124 Method getSetter( String name ); 125 126 137 Method guessSetter(String name); 138 139 } 140 | Popular Tags |