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
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
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
checkExtensions
(JarFile jar)