2015-07-15 12:58:30 +00:00
|
|
|
package wa.server.plugin;
|
|
|
|
|
|
|
|
|
|
|
2015-09-26 21:19:24 +00:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2015-07-15 12:58:30 +00:00
|
|
|
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-09-26 21:19:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return a list of configuration objects, the object
|
|
|
|
|
* configuration can be changed with the
|
|
|
|
|
* {@link zutil.db.bean.Configurator} class.
|
|
|
|
|
*/
|
|
|
|
|
public List<?> getConfigData();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return the class that contains the configuration data
|
|
|
|
|
*/
|
|
|
|
|
public Class<?> getConfigClass();
|
2015-07-15 12:58:30 +00:00
|
|
|
}
|