Class PluginInstallerImpl
java.lang.Object
com.biglybt.pifimpl.local.installer.PluginInstallerImpl
- All Implemented Interfaces:
PluginInstaller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AsyncDispatcherprivate CopyOnWriteList<PluginInstallerListener> private PluginManagerprotected static PluginInstallerImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFileInstallOperation(FilePluginInstaller installer) voidprivate FileextractFromVuzeFile(File file) protected PluginInterfaceprotected PluginManagerstatic PluginInstallerImplgetSingleton(PluginManager _manager) Gives access to the list of standard plugins listed on the client's websitevoidinstall(InstallablePlugin[] plugins, boolean shared) Install one of more plugins in a single operationprotected UpdateCheckInstanceinstall(InstallablePlugin[] plugins, boolean shared, boolean low_noise, Map<Integer, Object> properties, PluginInstallationListener listener) install(InstallablePlugin[] plugins, boolean shared, Map<Integer, Object> properties, PluginInstallationListener listener) voidinstall(InstallablePlugin installable_plugin, boolean shared) 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.voidvoidrequestInstall(String reason, InstallablePlugin plugin) Requests any registered listeners to initiate a plugin install processvoiduninstall(InstallablePlugin standard_plugin) voidvoiduninstall(PluginInterface[] pis) voiduninstall(PluginInterface[] pis, PluginInstallationListener listener_maybe_null) uninstall(PluginInterface[] pis, PluginInstallationListener listener_maybe_null, Map<Integer, Object> properties)
-
Field Details
-
singleton
-
manager
-
listeners
-
add_file_install_dispatcher
-
-
Constructor Details
-
PluginInstallerImpl
-
-
Method Details
-
getSingleton
-
addFileInstallOperation
-
getPluginManager
-
getStandardPlugins
Description copied from interface:PluginInstallerGives access to the list of standard plugins listed on the client's website- Specified by:
getStandardPluginsin interfacePluginInstaller- Returns:
- Throws:
PluginException
-
getStandardPlugin
- Specified by:
getStandardPluginin interfacePluginInstaller- Throws:
PluginException
-
extractFromVuzeFile
- Throws:
PluginException
-
installFromFile
Description copied from interface:PluginInstallerInstalls 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 - Specified by:
installFromFilein interfacePluginInstaller- Parameters:
file-- Throws:
PluginException
-
install
- Throws:
PluginException
-
install
Description copied from interface:PluginInstallerInstall one of more plugins in a single operation- Specified by:
installin interfacePluginInstaller- Parameters:
plugins-- Throws:
PluginException
-
install
public UpdateCheckInstance install(InstallablePlugin[] plugins, boolean shared, Map<Integer, Object> properties, PluginInstallationListener listener) throws PluginException- Specified by:
installin interfacePluginInstaller- Throws:
PluginException
-
install
protected UpdateCheckInstance install(InstallablePlugin[] plugins, boolean shared, boolean low_noise, Map<Integer, Object> properties, PluginInstallationListener listener) throws PluginException- Throws:
PluginException
-
uninstall
- Throws:
PluginException
-
uninstall
- Specified by:
uninstallin interfacePluginInstaller- Throws:
PluginException
-
uninstall
- Specified by:
uninstallin interfacePluginInstaller- Throws:
PluginException
-
uninstall
public void uninstall(PluginInterface[] pis, PluginInstallationListener listener_maybe_null) throws PluginException - Specified by:
uninstallin interfacePluginInstaller- Throws:
PluginException
-
uninstall
public UpdateCheckInstance uninstall(PluginInterface[] pis, PluginInstallationListener listener_maybe_null, Map<Integer, Object> properties) throws PluginException- Specified by:
uninstallin interfacePluginInstaller- Throws:
PluginException
-
getAlreadyInstalledPlugin
-
requestInstall
Description copied from interface:PluginInstallerRequests any registered listeners to initiate a plugin install process- Specified by:
requestInstallin interfacePluginInstaller- Parameters:
plugin-- Throws:
PluginException
-
addListener
- Specified by:
addListenerin interfacePluginInstaller
-
removeListener
- Specified by:
removeListenerin interfacePluginInstaller
-