Cleanup launcher classes

Cleanup a bunch of the code in launcher classes
- Migrate the majority of the reflection to ReflectionUtils
- Decrease logic in AbstractLauncher
- Add logging to launcher classes at FINE level
- make mcParams in AbstractLauncher an immutable list to prevent runtime manipulation
  - StandardLauncher instead copies the list to modify it

Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
This commit is contained in:
solonovamax
2022-11-01 12:27:04 -04:00
committed by TheKodeToad
parent 9b8096c699
commit dabb84f62a
8 changed files with 248 additions and 114 deletions

View File

@ -83,7 +83,7 @@ public final class Parameters {
List<String> params = map.get(key);
if (params == null)
throw new ParameterNotFoundException(key);
throw ParameterNotFoundException.forParameterName(key);
return params;
}
@ -101,7 +101,7 @@ public final class Parameters {
List<String> list = getList(key);
if (list.isEmpty())
throw new ParameterNotFoundException(key);
throw ParameterNotFoundException.forParameterName(key);
return list.get(0);
}