From 5b5baf697990f3b977c85007566f5a105f592c9f Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 22 Jan 2024 09:27:00 +0900 Subject: [PATCH] =?UTF-8?q?onComplete()=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/foundation/component/ScheduledServiceBean.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java b/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java index c374df9..c94c622 100644 --- a/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java +++ b/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java @@ -19,6 +19,7 @@ public class ScheduledServiceBean extends AbstractServiceBean { task.run(); } finally { scheduled.setBusy(false); + onComplete(); } } @@ -35,6 +36,11 @@ public class ScheduledServiceBean extends AbstractServiceBean { return task.get(); } finally { scheduled.setBusy(false); + onComplete(); } } + + /**일정에 따른 작업 완료 후 해야할 작업을 실행한다. + */ + protected void onComplete() {} } \ No newline at end of file