org.gudy.azureus2.plugins.installer
Interface PluginInstaller


public interface PluginInstaller

Author:
parg

Method Summary
 void addListener(PluginInstallerListener l)
           
 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
 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)
           
 

Method Detail

getStandardPlugins

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

Returns:
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

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

addListener

void addListener(PluginInstallerListener l)

removeListener

void removeListener(PluginInstallerListener l)