This commit is contained in:
crusader 2018-04-25 22:45:26 +09:00
parent ff2a7a271f
commit 9a3853938b

View File

@ -5,7 +5,28 @@ package com.loafle.overflow.core.interfaces;
*/
public interface Service {
void initService() throws Exception;
void startService() throws Exception;
void stopService();
void destroyService();
public static enum ServiceMethodType {
INIT("initService"),
START("startService"),
STOP("stopService"),
DESTROY("destroyService");
private String stringValue;
ServiceMethodType(String string) {
stringValue = string;
}
@Override
public String toString() {
return stringValue;
}
}
}