javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/jsrpluginnotifier/InstallerExtension.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/jsrpluginnotifier/InstallerExtension.java Tue Apr 27 16:30:29 2010 +0300
@@ -0,0 +1,65 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+
+package com.nokia.mj.impl.installer.jsrpluginnotifier;
+
+/**
+ * JSR Installer Plugin interface. All Java Installer
+ * JSR plugins must implement this interface and have
+ * constructor that accepts empty argument list.
+ *
+ * @author Nokia Corporation
+ * @version $Rev: 9337 $ $Date: 2010-01-14 14:27:46 +0200 (Thu, 14 Jan 2010) $
+ * @see JsrPluginNotifier
+ */
+public interface InstallerExtension
+{
+ /**
+ * This method is called when installation has been done
+ * nearly completely (only committing changes is left).
+ * @param aInstallerExtensionInfo installation info
+ * @return true if installation can be finished
+ * false if installation must be cancelled
+ */
+ public boolean install(InstallerExtensionInfo aInstallerExtensionInfo);
+
+ /**
+ * This method is called when uninstallation is starting
+ * (all information is still available in databases).
+ * @param aInstallerExtensionInfo uninstallation info
+ * @return true if uninstallation can be finished
+ * false if uninstallation must be cancelled
+ */
+ public boolean uninstall(InstallerExtensionInfo aInstallerExtensionInfo);
+
+ /**
+ * Called when installation has failed and will be rolled back.
+ * Called after install().
+ *
+ * @param aInstallerExtensionInfo installation info
+ */
+ public void rollbackInstall(InstallerExtensionInfo aInstallerExtensionInfo);
+
+ /**
+ * Called when uninstallation has failed and will be rolled back.
+ * Called after uninstall().
+ *
+ * @param aInstallerExtensionInfo installation info
+ */
+ public void rollbackUninstall(InstallerExtensionInfo aInstallerExtensionInfo);
+}