Package ca.corbett.updates
UpdateSources - Allows your application to bundle an update sources json file describing where to look for updates and extensions.
VersionManifest - If you prepare and upload a version manifest json file on a remote web server, you can point your application to it so that your application can look for new extensions and new versions of existing extensions. You can use the ExtPackager helper application (not included in swing-extras) to help you create this manifest.
UpdateManager - this is the class that your application will interact with to do the actual interrogation of remote update sources and handle downloading and installing extensions. This is handled transparently by ExtensionManagerDialog! Your application code will likely never have to deal with UpdateManager directly, other than instantiating an instance of it using the update sources json file bundled with your application, and then supplying that instance to ExtensionManagerDialog.
How do I set all this up? - There's a helper application called ExtPackager that can walk you through the process of setting up your UpdateSources json and your VersionManifest, and can also help you with things like digitally signing your extension jars, providing screenshots for each version, and uploading to your web host via FTP. You don't have to write this json by hand!
-
ClassDescriptionUsed internally when retrieving a remote extension to store all associated files together into one object: the jar file, the optional signature file, and the optional list of screenshots.A SimpleProgressWorker implementation that can download the given Extension and return it as a DownloadedExtension instance if the download succeeds.Implementations of this interface can be optionally supplied to UpdateManager to be invoked before the application is restarted.Applications built with swing-extras have a way of detecting if they are out of date, or if any of their currently-installed extensions are out of date.Callers can subscribe to receive notification events from an UpdateManager.Your application can package a json file which represents one or more "update sources" - that is, remote URLs where your application can check for new versions, and also to enable discovery and installation of new extensions, or new versions of already-installed extensions.Represents a single remote update source, for use with the UpdateConfiguration class.Represents the version manifest for an application, with all of its versions and all of its extensions.Represents a single version of the application in question, along with all of its compatible extensions.Represents a single extension for the application in question, along with all of the versions of this extension.Represents a single version of a single extension.Compares String versions in a sane and predictable way.