net.jetrix.services
Class VersionService

java.lang.Object
  extended by net.jetrix.services.AbstractService
      extended by net.jetrix.services.CronService
          extended by net.jetrix.services.VersionService
All Implemented Interfaces:
Service

public class VersionService
extends CronService

Service checking the availability of a new release.

Since:
0.2
Version:
$Revision: 567 $, $Date: 2005-01-10 17:45:19 +0100 (lun., 10 janv. 2005) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.services.CronService
pattern
 
Fields inherited from class net.jetrix.services.AbstractService
autoStart, log
 
Constructor Summary
VersionService()
           
 
Method Summary
static String getLatestVersion()
          Return the latest stable version known.
 String getName()
          Return the name of the service.
static boolean isNewVersionAvailable()
          Check if the latest stable version is more recent than the current version.
protected  void run()
          Do the task
static void updateLatestVersion()
          Update the latest stable version known.
 
Methods inherited from class net.jetrix.services.CronService
init, isRunning, setPattern, start, stop
 
Methods inherited from class net.jetrix.services.AbstractService
isAutoStart, setAutoStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionService

public VersionService()
Method Detail

getName

public String getName()
Description copied from interface: Service
Return the name of the service.


run

protected void run()
Description copied from class: CronService
Do the task

Specified by:
run in class CronService

updateLatestVersion

public static void updateLatestVersion()
Update the latest stable version known.


getLatestVersion

public static String getLatestVersion()
Return the latest stable version known.


isNewVersionAvailable

public static boolean isNewVersionAvailable()
Check if the latest stable version is more recent than the current version.



Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.