1 | if ((arguments == null) || (arguments.length == 0)) {↵ | | 1 | if ((arguments == null) || (arguments.length == 0)) {↵
|
|
2 | plugin = (IExtensionInterface) actClass.newInstance();↵ | | 2 | plugin = (IExtensionInterface) actClass.newInstance();↵
|
|
3 | } else {↵ | | 3 | } else {↵
|
4 | Constructor constructor;↵ | | 4 | Constructor constructor;↵
|
|
5 | constructor = ClassLoaderHelper↵ | | 5 | constructor = ClassLoaderHelper↵
|
6 | .findConstructor(arguments, actClass);↵ | | 6 | .findConstructor(arguments, actClass);↵
|
|
7 | // couldn't find correct constructor↵ | | 7 | // couldn't find correct constructor↵
|
8 | if (constructor == null) {↵ | | 8 | if (constructor == null) {↵
|
9 | LOG.severe("Couldn't find constructor for " + className↵ | | 9 | LOG.severe("Couldn't find constructor for " + className↵
|
10 | + " with matching argument-list: ");↵ | | 10 | + " with matching argument-list: ");↵
|
11 | for (int i = 0; i < arguments.length; i++) {↵ | | 11 | for (int i = 0; i < arguments.length; i++) {↵
|
12 | LOG.severe("argument[" + i + "]=" + arguments[i]);↵ | | 12 | LOG.severe("argument[" + i + "]=" + arguments[i]);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | return null;↵ | | 14 | return null;↵
|
15 | } else {↵ | | 15 | } else {↵
|
|
16 | plugin = (IExtensionInterface) constructor↵ | | 16 | plugin = (IExtensionInterface) constructor↵
|
17 | .newInstance(arguments); | | 17 | .newInstance(arguments);
|