public class

ExtensionDependency

extends Object
java.lang.Object
   ↳ sun.misc.ExtensionDependency

Class Overview

This class checks dependent extensions a particular jar file may have declared through its manifest attributes.

Jar file declared dependent extensions through the extension-list attribute. The extension-list contains a list of keys used to fetch the other attributes describing the required extension. If key is the extension key declared in the extension-list attribute, the following describing attribute can be found in the manifest : key-Extension-Name: (Specification package name) key-Specification-Version: (Specification-Version) key-Implementation-Version: (Implementation-Version) key-Implementation-Vendor-Id: (Imlementation-Vendor-Id) key-Implementation-Version: (Implementation version) key-Implementation-URL: (URL to download the requested extension)

This class also maintain versioning consistency of installed extensions dependencies declared in jar file manifest.

Summary

Public Constructors
ExtensionDependency()
Public Methods
synchronized static void addExtensionInstallationProvider(ExtensionInstallationProvider eip)

Register an ExtensionInstallationProvider.

static boolean checkExtensionsDependencies(JarFile jar)

Checks the dependencies of the jar file on installed extension.

synchronized static void removeExtensionInstallationProvider(ExtensionInstallationProvider eip)

Unregister a previously installed installation provider

Protected Methods
synchronized boolean checkExtension(String extensionName, Attributes attr)
boolean checkExtensionAgainst(String extensionName, Attributes attr, File file)
boolean checkExtensions(JarFile jar)
boolean installExtension(ExtensionInfo reqInfo, ExtensionInfo instInfo)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ExtensionDependency ()

Public Methods

public static synchronized void addExtensionInstallationProvider (ExtensionInstallationProvider eip)

Register an ExtensionInstallationProvider. The provider is responsible for handling the installation (upgrade) of any missing extensions.

Parameters
eip ExtensionInstallationProvider implementation

public static boolean checkExtensionsDependencies (JarFile jar)

Checks the dependencies of the jar file on installed extension.

public static synchronized void removeExtensionInstallationProvider (ExtensionInstallationProvider eip)

Unregister a previously installed installation provider

Protected Methods

protected synchronized boolean checkExtension (String extensionName, Attributes attr)

protected boolean checkExtensionAgainst (String extensionName, Attributes attr, File file)

protected boolean checkExtensions (JarFile jar)

protected boolean installExtension (ExtensionInfo reqInfo, ExtensionInfo instInfo)