org.gudy.azureus2.plugins.installer
Interface PluginInstaller

All Known Implementing Classes:
PluginInstallerImpl

public interface PluginInstaller

Author:
parg

Method Summary
 void addListener(PluginInstallerListener l)
           
 StandardPlugin getStandardPlugin(java.lang.String id)
           
 StandardPlugin[] getStandardPlugins()
          Gives access to the list of standard plugins listed on the Azureus website
 void install(InstallablePlugin[] plugins, boolean shared)
          Install one of more plugins in a single operation
 UpdateCheckInstance install(InstallablePlugin[] plugins, boolean shared, java.util.Map<java.lang.Integer,java.lang.Object> properties, PluginInstallationListener listener)
           
 FilePluginInstaller installFromFile(java.io.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 removeListener(PluginInstallerListener l)
           
 void requestInstall(java.lang.String reason, InstallablePlugin plugin)
          Requests any registered listeners to initiate a plugin install process
 void uninstall(PluginInterface plugin_interface)
           
 void uninstall(PluginInterface[] plugin_interfaces)
           
 void uninstall(PluginInterface[] plugin_interfaces, PluginInstallationListener listener)
           
 UpdateCheckInstance uninstall(PluginInterface[] plugin_interfaces, PluginInstallationListener listener, java.util.Map<java.lang.Integer,java.lang.Object> properties)
           
 

Method Detail

getStandardPlugins

StandardPlugin[] getStandardPlugins()
                                    throws PluginException
Gives access to the list of standard plugins listed on the Azureus website

Returns:
Throws:
PluginException

getStandardPlugin

StandardPlugin getStandardPlugin(java.lang.String id)
                                 throws PluginException
Throws:
PluginException

requestInstall

void requestInstall(java.lang.String reason,
                    InstallablePlugin plugin)
                    throws PluginException
Requests any registered listeners to initiate a plugin install process

Parameters:
plugin -
Throws:
PluginException

install

void install(InstallablePlugin[] plugins,
             boolean shared)
             throws PluginException
Install one of more plugins in a single operation

Parameters:
plugins -
Throws:
PluginException

install

UpdateCheckInstance install(InstallablePlugin[] plugins,
                            boolean shared,
                            java.util.Map<java.lang.Integer,java.lang.Object> properties,
                            PluginInstallationListener listener)
                            throws PluginException
Throws:
PluginException

installFromFile

FilePluginInstaller installFromFile(java.io.File file)
                                    throws PluginException
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

void uninstall(PluginInterface plugin_interface)
               throws PluginException
Throws:
PluginException

uninstall

void uninstall(PluginInterface[] plugin_interfaces)
               throws PluginException
Throws:
PluginException

uninstall

void uninstall(PluginInterface[] plugin_interfaces,
               PluginInstallationListener listener)
               throws PluginException
Throws:
PluginException

uninstall

UpdateCheckInstance uninstall(PluginInterface[] plugin_interfaces,
                              PluginInstallationListener listener,
                              java.util.Map<java.lang.Integer,java.lang.Object> properties)
                              throws PluginException
Throws:
PluginException

addListener

void addListener(PluginInstallerListener l)

removeListener

void removeListener(PluginInstallerListener l)