Search in sources :

Example 1 with MissionOutline

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);
    }
}
Also used : MissionOutline(com.github.nagyesta.abortmission.core.outline.MissionOutline)

Aggregations

MissionOutline (com.github.nagyesta.abortmission.core.outline.MissionOutline)1