Repository: camel Updated Branches: refs/heads/camel-2.15.x bfbf24952 -> 97c6a8605 refs/heads/master 58870c1bf -> 65594b370
CAMEL-8906: destroy method Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f231d640 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f231d640 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f231d640 Branch: refs/heads/master Commit: f231d6401819326fa33d508f5e79173112dbbde4 Parents: 58870c1 Author: bsmk <miroslavmatejov...@gmail.com> Authored: Sun Jun 28 17:10:26 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Jul 1 09:56:08 2015 +0200 ---------------------------------------------------------------------- .../spring/boot/CamelSpringBootApplicationController.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f231d640/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java index 7ff3714..cd516e7 100644 --- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java +++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java @@ -24,6 +24,8 @@ import org.apache.camel.ProducerTemplate; import org.apache.camel.main.MainSupport; import org.springframework.context.ApplicationContext; +import javax.annotation.PreDestroy; + public class CamelSpringBootApplicationController { private final MainSupport mainSupport; @@ -51,4 +53,9 @@ public class CamelSpringBootApplicationController { } } + @PreDestroy + private void destroy() { + mainSupport.completed(); + } + } \ No newline at end of file