org.gudy.azureus2.pluginsimpl.local.installer
Class InstallablePluginImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.installer.InstallablePluginImpl
All Implemented Interfaces:
InstallablePlugin
Direct Known Subclasses:
FilePluginInstallerImpl, StandardPluginImpl

public abstract class InstallablePluginImpl
extends java.lang.Object
implements InstallablePlugin

Author:
parg

Constructor Summary
protected InstallablePluginImpl(PluginInstallerImpl _installer)
           
 
Method Summary
abstract  void addUpdate(UpdateCheckInstance inst, PluginUpdatePlugin plugin_update_plugin, Plugin plugin, PluginInterface plugin_interface)
           
 PluginInterface getAlreadyInstalledPlugin()
          Returns the plugin's interface if already installed, null if it isn't
 PluginInstaller getInstaller()
           
 void install(boolean shared)
           
 void install(boolean shared, boolean low_noise, boolean wait_until_done)
          Install with a few options to control process
 boolean isAlreadyInstalled()
          Returns the plugin's interface if already installed, null if it isn't
 void uninstall()
          uninstall this plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.plugins.installer.InstallablePlugin
getDescription, getId, getName, getRelativeURLBase, getVersion
 

Constructor Detail

InstallablePluginImpl

protected InstallablePluginImpl(PluginInstallerImpl _installer)
Method Detail

isAlreadyInstalled

public boolean isAlreadyInstalled()
Returns the plugin's interface if already installed, null if it isn't

Specified by:
isAlreadyInstalled in interface InstallablePlugin
Returns:

getAlreadyInstalledPlugin

public PluginInterface getAlreadyInstalledPlugin()
Description copied from interface: InstallablePlugin
Returns the plugin's interface if already installed, null if it isn't

Specified by:
getAlreadyInstalledPlugin in interface InstallablePlugin
Returns:

install

public void install(boolean shared)
             throws PluginException
Specified by:
install in interface InstallablePlugin
Throws:
PluginException

install

public void install(boolean shared,
                    boolean low_noise,
                    boolean wait_until_done)
             throws PluginException
Description copied from interface: InstallablePlugin
Install with a few options to control process

Specified by:
install in interface InstallablePlugin
low_noise - don't prompt user
wait_until_done - if true blocks until process complete, otherwise it is async
Throws:
PluginException

uninstall

public void uninstall()
               throws PluginException
Description copied from interface: InstallablePlugin
uninstall this plugin

Specified by:
uninstall in interface InstallablePlugin
Throws:
PluginException

getInstaller

public PluginInstaller getInstaller()
Specified by:
getInstaller in interface InstallablePlugin

addUpdate

public abstract void addUpdate(UpdateCheckInstance inst,
                               PluginUpdatePlugin plugin_update_plugin,
                               Plugin plugin,
                               PluginInterface plugin_interface)