This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 70ee6c9c33f8a77fcab733dda94b7f1b2aafcab6
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue May 14 09:42:01 2019 +0200

    CAMEL-13501: Component should move initialization logic to doInit instead 
of doStart
---
 core/camel-api/src/main/java/org/apache/camel/Service.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/core/camel-api/src/main/java/org/apache/camel/Service.java 
b/core/camel-api/src/main/java/org/apache/camel/Service.java
index 89d3162..f601be4 100644
--- a/core/camel-api/src/main/java/org/apache/camel/Service.java
+++ b/core/camel-api/src/main/java/org/apache/camel/Service.java
@@ -17,12 +17,14 @@
 package org.apache.camel;
 
 /**
- * Represents the core lifecycle API for POJOs which can be started and stopped
+ * Represents the core lifecycle API for services which can be initialized, 
started and stopped
  */
 public interface Service {
 
     /**
      * Initialize the service
+     *
+     * @throws RuntimeException is thrown if initialization failed
      */
     default void init() {
     }

Reply via email to