org.gudy.azureus2.pluginsimpl.local.installer
Class PluginInstallerImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.installer.PluginInstallerImpl
- All Implemented Interfaces:
- PluginInstaller
public class PluginInstallerImpl
- extends Object
- implements PluginInstaller
Method Summary |
protected void |
addFileInstallOperation(FilePluginInstaller installer)
|
void |
addListener(PluginInstallerListener l)
|
protected PluginInterface |
getAlreadyInstalledPlugin(String id)
|
protected PluginManager |
getPluginManager()
|
static PluginInstallerImpl |
getSingleton(PluginManager _manager)
|
StandardPlugin |
getStandardPlugin(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 |
protected UpdateCheckInstance |
install(InstallablePlugin[] plugins,
boolean shared,
boolean low_noise,
Map<Integer,Object> properties,
PluginInstallationListener listener)
|
UpdateCheckInstance |
install(InstallablePlugin[] plugins,
boolean shared,
Map<Integer,Object> properties,
PluginInstallationListener listener)
|
void |
install(InstallablePlugin installable_plugin,
boolean shared)
|
FilePluginInstaller |
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 |
removeListener(PluginInstallerListener l)
|
void |
requestInstall(String reason,
InstallablePlugin plugin)
Requests any registered listeners to initiate a plugin install process |
void |
uninstall(InstallablePlugin standard_plugin)
|
void |
uninstall(PluginInterface pi)
|
void |
uninstall(PluginInterface[] pis)
|
void |
uninstall(PluginInterface[] pis,
PluginInstallationListener listener_maybe_null)
|
UpdateCheckInstance |
uninstall(PluginInterface[] pis,
PluginInstallationListener listener_maybe_null,
Map<Integer,Object> properties)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
singleton
protected static PluginInstallerImpl singleton
PluginInstallerImpl
protected PluginInstallerImpl(PluginManager _manager)
getSingleton
public static PluginInstallerImpl getSingleton(PluginManager _manager)
addFileInstallOperation
protected void addFileInstallOperation(FilePluginInstaller installer)
getPluginManager
protected PluginManager getPluginManager()
getStandardPlugins
public StandardPlugin[] getStandardPlugins()
throws PluginException
- Description copied from interface:
PluginInstaller
- Gives access to the list of standard plugins listed on the Azureus website
- Specified by:
getStandardPlugins
in interface PluginInstaller
- Returns:
-
- Throws:
PluginException
getStandardPlugin
public StandardPlugin getStandardPlugin(String id)
throws PluginException
- Specified by:
getStandardPlugin
in interface PluginInstaller
- Throws:
PluginException
installFromFile
public FilePluginInstaller installFromFile(File file)
throws PluginException
- 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 interface PluginInstaller
- Throws:
PluginException
install
public void install(InstallablePlugin installable_plugin,
boolean shared)
throws PluginException
- Throws:
PluginException
install
public void install(InstallablePlugin[] plugins,
boolean shared)
throws PluginException
- Description copied from interface:
PluginInstaller
- Install one of more plugins in a single operation
- Specified by:
install
in interface PluginInstaller
- Throws:
PluginException
install
public UpdateCheckInstance install(InstallablePlugin[] plugins,
boolean shared,
Map<Integer,Object> properties,
PluginInstallationListener listener)
throws PluginException
- Specified by:
install
in interface PluginInstaller
- Throws:
PluginException
install
protected UpdateCheckInstance install(InstallablePlugin[] plugins,
boolean shared,
boolean low_noise,
Map<Integer,Object> properties,
PluginInstallationListener listener)
throws PluginException
- Throws:
PluginException
uninstall
public void uninstall(InstallablePlugin standard_plugin)
throws PluginException
- Throws:
PluginException
uninstall
public void uninstall(PluginInterface pi)
throws PluginException
- Specified by:
uninstall
in interface PluginInstaller
- Throws:
PluginException
uninstall
public void uninstall(PluginInterface[] pis)
throws PluginException
- Specified by:
uninstall
in interface PluginInstaller
- Throws:
PluginException
uninstall
public void uninstall(PluginInterface[] pis,
PluginInstallationListener listener_maybe_null)
throws PluginException
- Specified by:
uninstall
in interface PluginInstaller
- Throws:
PluginException
uninstall
public UpdateCheckInstance uninstall(PluginInterface[] pis,
PluginInstallationListener listener_maybe_null,
Map<Integer,Object> properties)
throws PluginException
- Specified by:
uninstall
in interface PluginInstaller
- Throws:
PluginException
getAlreadyInstalledPlugin
protected PluginInterface getAlreadyInstalledPlugin(String id)
requestInstall
public void requestInstall(String reason,
InstallablePlugin plugin)
throws PluginException
- Description copied from interface:
PluginInstaller
- Requests any registered listeners to initiate a plugin install process
- Specified by:
requestInstall
in interface PluginInstaller
- Throws:
PluginException
addListener
public void addListener(PluginInstallerListener l)
- Specified by:
addListener
in interface PluginInstaller
removeListener
public void removeListener(PluginInstallerListener l)
- Specified by:
removeListener
in interface PluginInstaller