Initial impl of configuration page
This commit is contained in:
parent
78cb41a39c
commit
813d48ca05
5 changed files with 80 additions and 55 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue