Class PluginInstallerImpl
java.lang.Object
com.biglybt.pifimpl.local.installer.PluginInstallerImpl
- All Implemented Interfaces:
PluginInstaller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AsyncDispatcher
private CopyOnWriteList<PluginInstallerListener>
private PluginManager
protected static PluginInstallerImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFileInstallOperation
(FilePluginInstaller installer) void
private File
extractFromVuzeFile
(File file) protected PluginInterface
protected PluginManager
static PluginInstallerImpl
getSingleton
(PluginManager _manager) 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 operationprotected UpdateCheckInstance
install
(InstallablePlugin[] plugins, boolean shared, boolean low_noise, Map<Integer, Object> properties, PluginInstallationListener listener) install
(InstallablePlugin[] plugins, boolean shared, Map<Integer, Object> properties, PluginInstallationListener listener) void
install
(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.void
void
requestInstall
(String reason, InstallablePlugin plugin) Requests any registered listeners to initiate a plugin install processvoid
uninstall
(InstallablePlugin standard_plugin) void
void
uninstall
(PluginInterface[] pis) void
uninstall
(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:PluginInstaller
Gives access to the list of standard plugins listed on the client's website- Specified by:
getStandardPlugins
in interfacePluginInstaller
- Returns:
- Throws:
PluginException
-
getStandardPlugin
- Specified by:
getStandardPlugin
in interfacePluginInstaller
- Throws:
PluginException
-
extractFromVuzeFile
- Throws:
PluginException
-
installFromFile
Description copied from interface:PluginInstaller
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 - Specified by:
installFromFile
in interfacePluginInstaller
- Throws:
PluginException
-
install
- Throws:
PluginException
-
install
Description copied from interface:PluginInstaller
Install one of more plugins in a single operation- Specified by:
install
in interfacePluginInstaller
- Throws:
PluginException
-
install
public UpdateCheckInstance install(InstallablePlugin[] plugins, boolean shared, Map<Integer, Object> properties, PluginInstallationListener listener) throws PluginException- Specified by:
install
in 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:
uninstall
in interfacePluginInstaller
- Throws:
PluginException
-
uninstall
- Specified by:
uninstall
in interfacePluginInstaller
- Throws:
PluginException
-
uninstall
public void uninstall(PluginInterface[] pis, PluginInstallationListener listener_maybe_null) throws PluginException - Specified by:
uninstall
in interfacePluginInstaller
- Throws:
PluginException
-
uninstall
public UpdateCheckInstance uninstall(PluginInterface[] pis, PluginInstallationListener listener_maybe_null, Map<Integer, Object> properties) throws PluginException- Specified by:
uninstall
in interfacePluginInstaller
- Throws:
PluginException
-
getAlreadyInstalledPlugin
-
requestInstall
Description copied from interface:PluginInstaller
Requests any registered listeners to initiate a plugin install process- Specified by:
requestInstall
in interfacePluginInstaller
- Throws:
PluginException
-
addListener
- Specified by:
addListener
in interfacePluginInstaller
-
removeListener
- Specified by:
removeListener
in interfacePluginInstaller
-