org.biojava.spice.config
Class RegistryConfigIO

java.lang.Object
  extended byorg.biojava.spice.config.RegistryConfigIO
All Implemented Interfaces:
ConfigurationListener, Runnable

public class RegistryConfigIO
extends Object
implements Runnable, ConfigurationListener

a class to contact and retreive the configuration from a DAS registry server. also provide GUI window to active / deactive DAS servers.


Field Summary
static long TIME_BETWEEN_UPDATES
           
 
Constructor Summary
RegistryConfigIO(URL[] registryurl)
           
 
Method Summary
 void addConfigListener(ConfigurationListener listener)
           
 void newConfigRetrieved(RegistryConfiguration config)
          waiting for the thread that contacts the DAS registry to finish
 void run()
           
 void saveConfiguration()
          write back the config to the SPICE application
 void setConfiguration(RegistryConfiguration regi)
          set config fromoutside
 void setForceUpdate(boolean flag)
          enforce connecting to the registry, default: false
 void setNoUpdate(boolean flag)
          set flag if contaction should not be performed forceUpdate is stronger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME_BETWEEN_UPDATES

public static final long TIME_BETWEEN_UPDATES
See Also:
Constant Field Values
Constructor Detail

RegistryConfigIO

public RegistryConfigIO(URL[] registryurl)
Method Detail

setNoUpdate

public void setNoUpdate(boolean flag)
set flag if contaction should not be performed forceUpdate is stronger

Parameters:
flag -

setForceUpdate

public void setForceUpdate(boolean flag)
enforce connecting to the registry, default: false

Parameters:
flag -

addConfigListener

public void addConfigListener(ConfigurationListener listener)

run

public void run()
Specified by:
run in interface Runnable

saveConfiguration

public void saveConfiguration()
write back the config to the SPICE application


setConfiguration

public void setConfiguration(RegistryConfiguration regi)
set config fromoutside

Parameters:
regi - the config

newConfigRetrieved

public void newConfigRetrieved(RegistryConfiguration config)
waiting for the thread that contacts the DAS registry to finish

Specified by:
newConfigRetrieved in interface ConfigurationListener