camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: CAMEL-8906: destroy method
Date Wed, 01 Jul 2015 08:04:20 GMT
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 <miroslavmatejovsky@gmail.com>
Authored: Sun Jun 28 17:10:26 2015 +0200
Committer: Claus Ibsen <davsclaus@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


Mime
View raw message