()
| 138 | } |
| 139 | |
| 140 | public T newInstance() |
| 141 | throws IllegalAccessException, InstantiationException |
| 142 | { |
| 143 | try { |
| 144 | return (T) getConstructor().newInstance(); |
| 145 | } catch (NoSuchMethodException e) { |
| 146 | throw new RuntimeException(e); |
| 147 | } catch (InvocationTargetException e) { |
| 148 | throw new RuntimeException(e); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | public static Class forName(String name) throws ClassNotFoundException { |
| 153 | return forName(name, true, Method.getCaller().class_.loader); |