jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1493017 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java
Date Fri, 14 Jun 2013 10:13:38 GMT
Author: jukka
Date: Fri Jun 14 10:13:38 2013
New Revision: 1493017

URL: http://svn.apache.org/r1493017
Log:
OAK-867: Oak whiteboard

Only start background tasks if an executor is configured

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java?rev=1493017&r1=1493016&r2=1493017&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java Fri Jun
14 10:13:38 2013
@@ -123,7 +123,7 @@ public class Oak {
         public <T> Registration register(
                 Class<T> type, T service, Map<?, ?> properties) {
             Future<?> future = null;
-            if (type == Runnable.class) {
+            if (executor != null && type == Runnable.class) {
                 Runnable runnable = (Runnable) service;
                 Long period =
                         getValue(properties, "scheduler.period", Long.class);



Mime
View raw message