[DEV] increase invocation

This commit is contained in:
Edouard DUPIN 2022-04-01 00:59:42 +02:00
parent 7dfde94a47
commit 6ced097f47

View File

@ -139,7 +139,6 @@ public class ArgumentManager {
//localManager.showHelp();
int nbParameters = localManager.argumentPostConfigure.size();
boolean findExecutor = false;
List<Method> executor = localManager.properties.getExecutor();
for (Method exec : executor) {
if (nbParameters != exec.getParameterCount()) {
@ -200,9 +199,55 @@ public class ArgumentManager {
localManager.argumentPostConfigure.get(4), //
localManager.argumentPostConfigure.get(5), //
localManager.argumentPostConfigure.get(6));
case 8:
exec.invoke(obj, //
localManager.argumentPostConfigure.get(0), //
localManager.argumentPostConfigure.get(1), //
localManager.argumentPostConfigure.get(2), //
localManager.argumentPostConfigure.get(3), //
localManager.argumentPostConfigure.get(4), //
localManager.argumentPostConfigure.get(5), //
localManager.argumentPostConfigure.get(6), //
localManager.argumentPostConfigure.get(7));
case 9:
exec.invoke(obj, //
localManager.argumentPostConfigure.get(0), //
localManager.argumentPostConfigure.get(1), //
localManager.argumentPostConfigure.get(2), //
localManager.argumentPostConfigure.get(3), //
localManager.argumentPostConfigure.get(4), //
localManager.argumentPostConfigure.get(5), //
localManager.argumentPostConfigure.get(6), //
localManager.argumentPostConfigure.get(7), //
localManager.argumentPostConfigure.get(8));
case 10:
exec.invoke(obj, //
localManager.argumentPostConfigure.get(0), //
localManager.argumentPostConfigure.get(1), //
localManager.argumentPostConfigure.get(2), //
localManager.argumentPostConfigure.get(3), //
localManager.argumentPostConfigure.get(4), //
localManager.argumentPostConfigure.get(5), //
localManager.argumentPostConfigure.get(6), //
localManager.argumentPostConfigure.get(7), //
localManager.argumentPostConfigure.get(8), //
localManager.argumentPostConfigure.get(9));
case 11:
exec.invoke(obj, //
localManager.argumentPostConfigure.get(0), //
localManager.argumentPostConfigure.get(1), //
localManager.argumentPostConfigure.get(2), //
localManager.argumentPostConfigure.get(3), //
localManager.argumentPostConfigure.get(4), //
localManager.argumentPostConfigure.get(5), //
localManager.argumentPostConfigure.get(6), //
localManager.argumentPostConfigure.get(7), //
localManager.argumentPostConfigure.get(8), //
localManager.argumentPostConfigure.get(9), //
localManager.argumentPostConfigure.get(10));
break;
default:
Log.error("Does not manage more than 7 arguments");
Log.error("Does not manage more than 11 arguments");
break;
}
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {