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);
}
Aggregations