You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2017/07/03 02:02:00 UTC

[jira] [Updated] (JCRVLT-190) Provide mechanism to install several packages at once

     [ https://issues.apache.org/jira/browse/JCRVLT-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra updated JCRVLT-190:
------------------------------------
    Description: 
it should be possible to install several packages at once. the package manager has to 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}
 

  was:
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}
 


> 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 to 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)