This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch 13514 in repository https://gitbox.apache.org/repos/asf/camel.git
commit 31ef818c3bfc516199fadb918a8dc46d6c0918c7 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() { }