use of com.github.nagyesta.abortmission.core.outline.MissionOutline in project abort-mission by nagyesta.
the class AnnotationContextEvaluator method doInitialBriefingOfMissionOutline.
private void doInitialBriefingOfMissionOutline(final Class<? extends MissionOutline> missionOutlineClass) {
try {
final MissionOutline outline = missionOutlineClass.getConstructor().newInstance();
outline.initialBriefing();
} catch (final Exception e) {
throw new IllegalArgumentException("Mission outline cannot be instantiated." + e.getMessage(), e);
}
}
Aggregations