Initial impl of configuration page

This commit is contained in:
Ziver Koc 2015-08-07 14:46:01 +00:00
parent 78cb41a39c
commit 813d48ca05
5 changed files with 80 additions and 55 deletions

View file

@ -1,12 +1,24 @@
package wa.server.plugin;
import java.io.IOException;
import java.sql.SQLException;
import zutil.db.DBConnection;
public interface WAServiceConfig {
/**
* @return the String name of this configuration type
*/
public String getName();
public void read() throws SQLException;
public void save() throws IOException;
/**
* 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;
}