public class UpdateService
extends java.lang.Object
implements de.willuhn.boot.Bootable
| Constructor and Description |
|---|
UpdateService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<de.willuhn.boot.Bootable>[] |
depends() |
java.util.List<PluginData> |
findUpdates(de.willuhn.util.ProgressMonitor monitor)
Sucht nach Updates fuer die installierten Plugins und liefert sie zurueck.
|
boolean |
getUpdateCheck()
Prueft, ob ueberhaupt regelmaessig nach Updates gesucht werden soll.
|
boolean |
getUpdateInstall()
Prueft, ob Updates automatisch installiert werden sollen oder nur eine
Benachrichtigung erfolgen soll.
|
int |
getUpdateInterval()
Liefert das Intervall (in Tagen), in denen nach Updates gesucht werden soll.
|
void |
init(de.willuhn.boot.BootLoader arg0,
de.willuhn.boot.Bootable arg1) |
void |
setUpdateCheck(boolean b)
Legt fest, ob ueberhaupt regelmaessig nach Updates gesucht werden soll.
|
void |
setUpdateInstall(boolean b)
Legt fest, ob Updates automatisch installiert werden sollen oder nur eine
Benachrichtigung erfolgen soll.
|
void |
setUpdateInterval(int days)
Speichert das Intervall (in Tagen), in denen nach Updates gesucht werden soll.
|
void |
shutdown() |
public java.lang.Class<de.willuhn.boot.Bootable>[] depends()
depends in interface de.willuhn.boot.BootableBootable.depends()public void init(de.willuhn.boot.BootLoader arg0,
de.willuhn.boot.Bootable arg1)
throws de.willuhn.boot.SkipServiceException
init in interface de.willuhn.boot.Bootablede.willuhn.boot.SkipServiceExceptionBootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)public void shutdown()
shutdown in interface de.willuhn.boot.BootableBootable.shutdown()public int getUpdateInterval()
public void setUpdateInterval(int days)
days - Intervall in Tagen.public boolean getUpdateCheck()
public void setUpdateCheck(boolean b)
b - true, wenn regelmaessig nach Updates gesucht werden soll.public boolean getUpdateInstall()
public void setUpdateInstall(boolean b)
b - true, wenn automatisch installiert werden soll.public java.util.List<PluginData> findUpdates(de.willuhn.util.ProgressMonitor monitor) throws de.willuhn.util.ApplicationException
monitor - optionale Angabe eines Progress-Monitor, in dem der Pruef-Fortschritt angezeigt wird.de.willuhn.util.ApplicationException