You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/07/01 10:04:20 UTC
[3/3] camel git commit: CAMEL-8906: destroy method
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/97c6a860
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/97c6a860
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/97c6a860
Branch: refs/heads/camel-2.15.x
Commit: 97c6a86052b39b1b957b2a2d178c1a06aca6239b
Parents: bfbf249
Author: bsmk <mi...@gmail.com>
Authored: Sun Jun 28 17:10:26 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jul 1 10:09:57 2015 +0200
----------------------------------------------------------------------
.../spring/boot/CamelSpringBootApplicationController.java | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/97c6a860/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