karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject karaf-decanter git commit: [KARAF-4574] Only start if config is present
Date Fri, 17 Jun 2016 09:18:38 GMT
Repository: karaf-decanter
Updated Branches:
  refs/heads/master 42b94d220 -> e4bd2cdc3


[KARAF-4574] Only start if config is present


Project: http://git-wip-us.apache.org/repos/asf/karaf-decanter/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-decanter/commit/e4bd2cdc
Tree: http://git-wip-us.apache.org/repos/asf/karaf-decanter/tree/e4bd2cdc
Diff: http://git-wip-us.apache.org/repos/asf/karaf-decanter/diff/e4bd2cdc

Branch: refs/heads/master
Commit: e4bd2cdc353c9abbd1fd8a38896a9cd71a794d99
Parents: 42b94d2
Author: Christian Schneider <chris@die-schneider.net>
Authored: Fri Jun 17 11:18:28 2016 +0200
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Fri Jun 17 11:18:28 2016 +0200

----------------------------------------------------------------------
 .../karaf/decanter/collector/file/DecanterTailerListener.java      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/e4bd2cdc/collector/file/src/main/java/org/apache/karaf/decanter/collector/file/DecanterTailerListener.java
----------------------------------------------------------------------
diff --git a/collector/file/src/main/java/org/apache/karaf/decanter/collector/file/DecanterTailerListener.java
b/collector/file/src/main/java/org/apache/karaf/decanter/collector/file/DecanterTailerListener.java
index df797d7..d95d43a 100644
--- a/collector/file/src/main/java/org/apache/karaf/decanter/collector/file/DecanterTailerListener.java
+++ b/collector/file/src/main/java/org/apache/karaf/decanter/collector/file/DecanterTailerListener.java
@@ -29,6 +29,7 @@ import org.osgi.service.cm.ConfigurationException;
 import org.osgi.service.component.ComponentContext;
 import org.osgi.service.component.annotations.Activate;
 import org.osgi.service.component.annotations.Component;
+import org.osgi.service.component.annotations.ConfigurationPolicy;
 import org.osgi.service.component.annotations.Deactivate;
 import org.osgi.service.component.annotations.Reference;
 import org.osgi.service.event.Event;
@@ -38,6 +39,7 @@ import org.slf4j.LoggerFactory;
 
 @Component(
     name="org.apache.karaf.decanter.collector.file",
+    configurationPolicy = ConfigurationPolicy.REQUIRE,
     immediate = true
 )
 public class DecanterTailerListener extends TailerListenerAdapter {


Mime
View raw message