Commit 509dc406 authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Updated JavaDocs in PluginDownloadManager.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4136 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5d184015
...@@ -9,14 +9,20 @@ package org.jivesoftware.wildfire.update; ...@@ -9,14 +9,20 @@ package org.jivesoftware.wildfire.update;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.XMPPServer; import org.jivesoftware.wildfire.XMPPServer;
import org.jivesoftware.wildfire.update.Update;
import org.jivesoftware.wildfire.update.UpdateManager;
/** /**
* Service that allow for aysynchrous calling of system managers.
* *
* @author Derek DeMoro
*/ */
public class PluginDownloadManager { public class PluginDownloadManager {
/**
* Starts the download process of a given plugin with it's URL.
*
* @param url the url of the plugin to download.
* @return the Update.
*/
public Update downloadPlugin(String url) { public Update downloadPlugin(String url) {
UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager(); UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager();
updateManager.downloadPlugin(url); updateManager.downloadPlugin(url);
...@@ -39,7 +45,13 @@ public class PluginDownloadManager { ...@@ -39,7 +45,13 @@ public class PluginDownloadManager {
return returnUpdate; return returnUpdate;
} }
/**
* Installs a new plugin into Wildfire.
*
* @param url the url of the plugin to install.
* @param hashCode the matching hashcode of the <code>AvailablePlugin</code>.
* @return the hashCode.
*/
public int installPlugin(String url, int hashCode) { public int installPlugin(String url, int hashCode) {
UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager(); UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment