40 lines
850 B
Java
40 lines
850 B
Java
package wa.server.plugin;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
public interface WAServiceConfig {
|
|
/**
|
|
* @return the String name of this configuration type
|
|
*/
|
|
public String getName();
|
|
|
|
/**
|
|
* 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;
|
|
|
|
|
|
|
|
/**
|
|
* @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();
|
|
}
|