webadmin/src/wa/server/plugin/WAServiceConfig.java

41 lines
850 B
Java
Raw Normal View History

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
*/
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
}