diff --git a/src/main/java/com/loafle/overflow/core/interfaces/Service.java b/src/main/java/com/loafle/overflow/core/interfaces/Service.java index f8c8209..eed8d5e 100644 --- a/src/main/java/com/loafle/overflow/core/interfaces/Service.java +++ b/src/main/java/com/loafle/overflow/core/interfaces/Service.java @@ -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; + } + } } \ No newline at end of file