|
1 | | -/* |
2 | | - * |
3 | | - Fugerit Java Library is distributed under the terms of : |
4 | | -
|
5 | | - Apache License |
6 | | - Version 2.0, January 2004 |
7 | | - http://www.apache.org/licenses/ |
8 | | -
|
9 | | -
|
10 | | - Full license : |
11 | | - http://www.apache.org/licenses/LICENSE-2.0 |
12 | | - |
13 | | - Project site: |
14 | | - https://www.fugerit.org/ |
15 | | - |
16 | | - SCM site : |
17 | | - https://github.com/fugerit79/fj-lib |
18 | | - |
19 | | - * |
20 | | - */ |
21 | 1 | package org.fugerit.java.core.lang.helpers; |
22 | 2 |
|
23 | 3 | import java.io.InputStream; |
24 | | -import java.lang.reflect.InvocationTargetException; |
25 | 4 |
|
26 | 5 | import org.fugerit.java.core.cfg.ConfigException; |
27 | 6 | import org.fugerit.java.core.cfg.ConfigRuntimeException; |
@@ -63,13 +42,9 @@ public static ClassLoader getDefaultClassLoader() { |
63 | 42 | * |
64 | 43 | * @param type fully qualified name fo the class for which the new instance will be created |
65 | 44 | * @return the new istance |
66 | | - * @throws ClassNotFoundException |
67 | | - * @throws SecurityException |
68 | | - * @throws NoSuchMethodException |
69 | | - * @throws InvocationTargetException |
70 | | - * @throws IllegalArgumentException |
71 | | - * @throws IllegalAccessException |
72 | | - * @throws InstantiationException |
| 45 | + * @throws ClassNotFoundException if the class is not found |
| 46 | + * @throws NoSuchMethodException if the method (default constructor) is not found |
| 47 | + * @throws ConfigException in any other case |
73 | 48 | */ |
74 | 49 | public static Object newInstance( String type ) throws ClassNotFoundException, NoSuchMethodException, ConfigException { |
75 | 50 | Object result = null; |
|
0 commit comments