ing
This commit is contained in:
parent
ff2a7a271f
commit
9a3853938b
|
@ -5,7 +5,28 @@ package com.loafle.overflow.core.interfaces;
|
||||||
*/
|
*/
|
||||||
public interface Service {
|
public interface Service {
|
||||||
void initService() throws Exception;
|
void initService() throws Exception;
|
||||||
|
|
||||||
void startService() throws Exception;
|
void startService() throws Exception;
|
||||||
|
|
||||||
void stopService();
|
void stopService();
|
||||||
|
|
||||||
void destroyService();
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user