Package com.biglybt.pif.installer
Interface PluginInstaller
- All Known Implementing Classes:
PluginInstallerImpl
public interface PluginInstaller
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gives access to the list of standard plugins listed on the client's websitevoid
install
(InstallablePlugin[] plugins, boolean shared) Install one of more plugins in a single operationinstall
(InstallablePlugin[] plugins, boolean shared, Map<Integer, Object> properties, PluginInstallationListener listener) installFromFile
(File file) Installs a plugin from a file - must be either a ZIP file or a JAR file as per normal plugin update semantics.void
void
requestInstall
(String reason, InstallablePlugin plugin) Requests any registered listeners to initiate a plugin install processvoid
uninstall
(PluginInterface plugin_interface) void
uninstall
(PluginInterface[] plugin_interfaces) void
uninstall
(PluginInterface[] plugin_interfaces, PluginInstallationListener listener) uninstall
(PluginInterface[] plugin_interfaces, PluginInstallationListener listener, Map<Integer, Object> properties)
-
Method Details
-
getStandardPlugins
Gives access to the list of standard plugins listed on the client's website- Returns:
- Throws:
PluginException
-
getStandardPlugin
- Throws:
PluginException
-
requestInstall
Requests any registered listeners to initiate a plugin install process- Parameters:
plugin
-- Throws:
PluginException
-
install
Install one of more plugins in a single operation- Parameters:
plugins
-- Throws:
PluginException
-
install
UpdateCheckInstance install(InstallablePlugin[] plugins, boolean shared, Map<Integer, Object> properties, PluginInstallationListener listener) throws PluginException- Throws:
PluginException
-
installFromFile
Installs a plugin from a file - must be either a ZIP file or a JAR file as per normal plugin update semantics. Name of file must be of the form:"_" "." ["jar" | "zip" ]. For example myplugin_1.0.jar - Parameters:
file
-- Throws:
PluginException
-
uninstall
- Throws:
PluginException
-
uninstall
- Throws:
PluginException
-
uninstall
void uninstall(PluginInterface[] plugin_interfaces, PluginInstallationListener listener) throws PluginException - Throws:
PluginException
-
uninstall
UpdateCheckInstance uninstall(PluginInterface[] plugin_interfaces, PluginInstallationListener listener, Map<Integer, Object> properties) throws PluginException- Throws:
PluginException
-
addListener
-
removeListener
-