2015-07-15 12:58:30 +00:00
|
|
|
package wa.server.plugin;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public interface WAServiceConfig {
|
2015-08-07 14:46:01 +00:00
|
|
|
/**
|
|
|
|
|
* @return the String name of this configuration type
|
|
|
|
|
*/
|
2015-07-27 15:10:11 +00:00
|
|
|
public String getName();
|
2015-08-07 14:46:01 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read in current configuration data
|
|
|
|
|
*/
|
|
|
|
|
public void read() throws Exception;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Save configured data to disk or database
|
|
|
|
|
*/
|
|
|
|
|
public void save() throws Exception;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Configure service with current configuration data
|
|
|
|
|
*/
|
|
|
|
|
public void configure() throws Exception;
|
2015-07-15 12:58:30 +00:00
|
|
|
}
|