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 ...

Get Java™ Deployment with JNLP™ and Webstart™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.