Class ScenarioLoader

java.lang.Object
org.frankframework.larva.ScenarioLoader

public class ScenarioLoader extends Object
Load scenario data for a given scenario file.

Scenario files can include other files. Included files are cached per instance of the ScenarioLoader.

  • Constructor Details

    • ScenarioLoader

      public ScenarioLoader(LarvaTool larvaTool)
  • Method Details

    • readScenarioFiles

      @Nonnull public Map<Scenario.ID,Scenario> readScenarioFiles(@Nonnull String scenariosDirectory)
    • readScenarioProperties

      @Nonnull public ScenarioLoader.RawScenarioData readScenarioProperties(@Nonnull File scenarioFile, @Nonnull AppConstants appConstants) throws IOException
      Read the properties of a scenario file.
      Parameters:
      scenarioFile - The scenario file to read
      appConstants - AppConstants to be used for resolving propertes in scenarios
      Returns:
      The properties read from the scenario file.
      Throws:
      IOException