|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ideimpl.webupdate.CheckUpdatesRunnable
public abstract class CheckUpdatesRunnable
Runnable that checks one or more update centers for new updates. You should subclass this runnable and handle the detection of a new update by overriding the updateFound() method (this method is guaranteed to be executed on the AWT event thread). The runnable handles dependencies. If an update is found that requires other extensions, it will check to see whether those extensions are installed or have been found in an update center. If the dependencies are not satisfied, the runnable remembers the updates in case a later update is found that satisfies the dependency.
Constructor Summary | |
---|---|
CheckUpdatesRunnable(java.util.List updateCenters)
|
Method Summary | |
---|---|
protected abstract void |
finished(java.util.Collection updates)
An update with all satisified dependencies was found. |
protected UpdateCenterMonitor |
getMonitor()
|
boolean |
isRunning()
|
void |
run()
|
void |
setMonitor(UpdateCenterMonitor monitor)
|
protected abstract void |
stopped()
Checking for updates was stopped. |
static boolean |
testCompatibleVersion(UpdateInfo update,
java.lang.String depId,
Version version)
|
protected abstract void |
updateCenterError(UpdateCenter center,
java.lang.Throwable t)
An error occurred retrieving the list of updates from one of the update centers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckUpdatesRunnable(java.util.List updateCenters)
Method Detail |
---|
public final void setMonitor(UpdateCenterMonitor monitor)
protected final UpdateCenterMonitor getMonitor()
public void run()
run
in interface java.lang.Runnable
public static boolean testCompatibleVersion(UpdateInfo update, java.lang.String depId, Version version)
public boolean isRunning()
protected abstract void updateCenterError(UpdateCenter center, java.lang.Throwable t)
center
- the update center from which a list of updates could not
be retrieved.t
- the error that occurred.protected abstract void finished(java.util.Collection updates)
updates
- all found updates.protected abstract void stopped()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |