return urls;
return null;
}
- static
- {
+ /**
+ * fetch new services or reset to hardwired defaults depending on preferences.
+ */
+ static public void doDiscovery()
+ {
+ jalview.bin.Cache.log.debug("(Re)-Initialising the discovery URL list.");
try
{
reallyDiscoverServices = jalview.bin.Cache.getDefault("DISCOVERY_START", false);
firePropertyChange("services", oldServices, services);
}
+ /**
+ * creates a new thread to call discoverServices()
+ */
public void run()
{
- discoverServices();
+ final Discoverer discoverer = this;
+ Thread discoverThread = new Thread() {
+ public void run() {
+ discoverer.doDiscovery();
+ discoverer.discoverServices();
+ }
+ };
+ discoverThread.start();
}
}