Resource Management
The DownloadService and DownloadServiceListener classes are dedicated to the download and caching of resources, and are often used together with the ExtensionInstallerService.
The DownloadService can return information about cached parts (refer to Chapter 10), parts of extensions, or simple JAR files. This information can be returned only for items belonging to the application currently running. In other words, the information can be returned only for items that are mentioned in the main JNLP file or in referenced JNLP files.
A JAR file, a part, or an extension part could be loaded using the methods loadResource, loadPart, and loadExtensionPart. The DownloadServiceListener is used as an argument in these methods in order to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access