Tobias Bocanegra created JCRVLT-190: ---------------------------------------
Summary: Provide mechanism to install several packages at once Key: JCRVLT-190 URL: https://issues.apache.org/jira/browse/JCRVLT-190 Project: Jackrabbit FileVault Issue Type: Improvement Components: Packaging Reporter: Tobias Bocanegra it should be possible to install several packages at once. the package manager has ensure the correct installation order based on dependency resolution. the installation operation should be divided into a prepare and execute phase. the preparation phase will generate a _InstallationPlan_ which is serializable. The execution phase will use the _InstallationPlan_ and operate on the packages accordingly. the separation of prepare and execute has the advantage, that the preparation can already validate the correctness and optimize the import order. draft proposal: {code} InstallationPlanBuilder PackageManager.getInstallationPlanBuilder(); InstallationPlanBuilder.installPackage(PackageId); InstallationPlanBuilder.uninstallPackage(PackageId); // probably not needed right now InstallationPlan InstallationPlanBuilder.build(); InstallationPlanBuilder.load(InputStream) InstallationPlan.save(InputStream) InstallationPan.validate(); InstallationResult PackageManager.execute(InstallationPlan); {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)