org.ow2.petals.microkernel.api.extension
Interface InstallationExtension


public interface InstallationExtension

A component providing features to install, uninstall or deploy/undeploy artifacts MUST implement this interface.

Author:
Christophe DENEUX - Linagora

Method Summary
 void onInstallation(String installedArchiveFilename)
          Callback invoked on installation process to register the installed archive in the component implementing this interface.
 void onInstallationUndo(String installedArchiveFilename)
          Callback invoked on cancelation of the installation process to unregister an installed archive from the component implementing this interface.
 void onUninstallation(String uninstalledArchiveFilename)
          Callback invoked on uninstallation process to register the uninstalled archive in the component implementing this interface.
 void onUninstallationUndo(String uninstalledArchiveFilename)
          Callback invoked on cancelation of the uninstallation process to register an installed archive from the component implementing this interface.
 

Method Detail

onInstallation

void onInstallation(String installedArchiveFilename)
                    throws InstallationExtensionException
Callback invoked on installation process to register the installed archive in the component implementing this interface.

Parameters:
installedArchiveFilename - The installed archive file name, as absolute file name.
Throws:
InstallationExtensionException - An error occurs processing the installed archive.

onInstallationUndo

void onInstallationUndo(String installedArchiveFilename)
                        throws InstallationExtensionException
Callback invoked on cancelation of the installation process to unregister an installed archive from the component implementing this interface.

Parameters:
installedArchiveFilename - The installed archive file name previously registered and that should be cancelled
Throws:
InstallationExtensionException - An error occurs processing the installed archive.

onUninstallation

void onUninstallation(String uninstalledArchiveFilename)
                      throws InstallationExtensionException
Callback invoked on uninstallation process to register the uninstalled archive in the component implementing this interface.

Parameters:
uninstalledArchiveFilename - The uninstalled archive file name
Throws:
InstallationExtensionException - An error occurs processing the uninstalled archive.

onUninstallationUndo

void onUninstallationUndo(String uninstalledArchiveFilename)
                          throws InstallationExtensionException
Callback invoked on cancelation of the uninstallation process to register an installed archive from the component implementing this interface.

Parameters:
uninstalledArchiveFilename - The uninstalled archive file name previously unregistered and that should be cancelled
Throws:
InstallationExtensionException - An error occurs processing the installed archive.


Copyright © 2005-2015 Linagora. All Rights Reserved.