Package org.vanted.updater
Class ScanForUpdate
java.lang.Object
org.vanted.updater.ScanForUpdate
- All Implemented Interfaces:
PreferencesInterface
public class ScanForUpdate extends Object implements PreferencesInterface
Update file has very simple format: For the message string.. it only has to
be surrounded by '{{' and '}}' and can go over many lines first line:
version: //x.x.x <+|->: .. message:{{
}} // + = add the file - = remove the file
type = type of file (core, lib) filename = url to file # comment line e.g.: #
some comment version: 2.5.0 +core: vanted-core.jar +lib: lib-name.jar -lib:
lib-name2.jar message:{{ some text message }} // # end of update entry
- Author:
- matthiak
-
Constructor Summary
Constructors Constructor Description ScanForUpdate()
-
Method Summary
Modifier and Type Method Description List<Parameter>
getDefaultParameters()
On first start or on reset there will be no preferences available.String
getPreferencesAlternativeName()
return a custom preference category, that this class will reside in.static void
issueScan(boolean ignoreDate)
static void
issueScanAfterStartup()
void
updatePreferences(Preferences preferences)
This method will be called, when preferences for this class have changed and the implementing class gets the chance of setting class (static) variables having the values of the parameters.
-
Constructor Details
-
ScanForUpdate
public ScanForUpdate()
-
-
Method Details
-
issueScanAfterStartup
public static void issueScanAfterStartup() -
issueScan
public static void issueScan(boolean ignoreDate) -
getDefaultParameters
Description copied from interface:PreferencesInterface
On first start or on reset there will be no preferences available. The PreferenceManager will read this list containing the set of settings, that the implementing class thinks can be configured provide default values. All Parameters in this list will also appear in the PreferenceDialog. Entities providing preferences should add parameters to this array.- Specified by:
getDefaultParameters
in interfacePreferencesInterface
-
updatePreferences
Description copied from interface:PreferencesInterface
This method will be called, when preferences for this class have changed and the implementing class gets the chance of setting class (static) variables having the values of the parameters. Setting static class variables will help increase speed, when querying the parameters. Direct variable access VS querying the Preferences Object for this class- Specified by:
updatePreferences
in interfacePreferencesInterface
-
getPreferencesAlternativeName
Description copied from interface:PreferencesInterface
return a custom preference category, that this class will reside in. If null is returned, this class will be put into a standard category dependent on its Super class- Specified by:
getPreferencesAlternativeName
in interfacePreferencesInterface
- Returns:
-