Search in sources :

Example 1 with PAOModel

use of io.vertigo.studio.plugins.mda.task.model.PAOModel in project vertigo by KleeGroup.

the class TaskGeneratorPlugin method generatePao.

/**
 *  Génération d'un PAO c'est à dire des taches afférentes à un package.
 */
private static void generatePao(final String targetSubDir, final FileGeneratorConfig fileGeneratorConfig, final MdaResultBuilder mdaResultBuilder, final Collection<TaskDefinition> taskDefinitionCollection, final String packageName) {
    final PAOModel paoModel = new PAOModel(fileGeneratorConfig, taskDefinitionCollection, packageName);
    final Map<String, Object> model = new MapBuilder<String, Object>().put("pao", paoModel).build();
    FileGenerator.builder(fileGeneratorConfig).withModel(model).withFileName(paoModel.getClassSimpleName() + ".java").withGenSubDir(targetSubDir).withPackageName(paoModel.getPackageName()).withTemplateName("task/template/pao.ftl").build().generateFile(mdaResultBuilder);
}
Also used : PAOModel(io.vertigo.studio.plugins.mda.task.model.PAOModel) MapBuilder(io.vertigo.util.MapBuilder)

Aggregations

PAOModel (io.vertigo.studio.plugins.mda.task.model.PAOModel)1 MapBuilder (io.vertigo.util.MapBuilder)1