com.evermind.util
Interface Config

All Known Subinterfaces:
UserManager

public interface Config

Base interface for configurations.


Method Summary
 void create(java.net.URL url)
          Instantiate this config as a new Config with the persistence set to the specified URL.
 void invalidate()
          Invalidate the config, ie force a reload (make isUpdated() return true).
 boolean isUpdated()
          Check if an update is needed
 void store()
          Store the current settings to the persistent storage.
 void update()
          Update this config if needed (isUpdated() returns true), ie reload any cached data (if present).
 

Method Detail

isUpdated


public boolean isUpdated()
Check if an update is needed

update


public void update()
            throws java.lang.InstantiationException
Update this config if needed (isUpdated() returns true), ie reload any cached data (if present).

invalidate


public void invalidate()
Invalidate the config, ie force a reload (make isUpdated() return true).

create


public void create(java.net.URL url)
            throws java.io.IOException
Instantiate this config as a new Config with the persistence set to the specified URL.

store


public void store()
           throws java.io.IOException
Store the current settings to the persistent storage. *ALWAYS* call .store() after an update operation.