From 9a3853938be26cd035e4eef2d1b93240350e7c03 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 25 Apr 2018 22:45:26 +0900 Subject: [PATCH] ing --- .../overflow/core/interfaces/Service.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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