You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:27:11 UTC

[sling-org-apache-sling-discovery-commons] 04/07: SLING-5620 : upgrade sling.commons.scheduler dependency to 2.4.0

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

rombert pushed a commit to annotated tag org.apache.sling.discovery.commons-1.0.12
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-commons.git

commit e3d6546b0ed241c42d52b4d3b18948d60095bfaa
Author: Stefan Egli <st...@apache.org>
AuthorDate: Mon Mar 21 14:01:01 2016 +0000

    SLING-5620 : upgrade sling.commons.scheduler dependency to 2.4.0
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/commons@1735976 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |  2 +-
 .../commons/providers/base/DummyScheduler.java     | 36 ++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 05a0180..bcadf6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,7 +80,7 @@
         <dependency>
         	<groupId>org.apache.sling</groupId>
         	<artifactId>org.apache.sling.commons.scheduler</artifactId>
-        	<version>2.3.4</version>
+        	<version>2.4.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/src/test/java/org/apache/sling/discovery/commons/providers/base/DummyScheduler.java b/src/test/java/org/apache/sling/discovery/commons/providers/base/DummyScheduler.java
index 09ac453..405db7b 100644
--- a/src/test/java/org/apache/sling/discovery/commons/providers/base/DummyScheduler.java
+++ b/src/test/java/org/apache/sling/discovery/commons/providers/base/DummyScheduler.java
@@ -23,6 +23,7 @@ import java.util.Date;
 import java.util.Map;
 import java.util.NoSuchElementException;
 
+import org.apache.sling.commons.scheduler.ScheduleOptions;
 import org.apache.sling.commons.scheduler.Scheduler;
 
 public class DummyScheduler implements Scheduler {
@@ -106,4 +107,39 @@ public class DummyScheduler implements Scheduler {
         failMode = true;
     }
 
+    @Override
+    public boolean schedule(Object job, ScheduleOptions options) {
+        throw new IllegalStateException("not yet impl");
+    }
+
+    @Override
+    public boolean unschedule(String jobName) {
+        throw new IllegalStateException("not yet impl");
+    }
+
+    @Override
+    public ScheduleOptions NOW() {
+        throw new IllegalStateException("not yet impl");
+    }
+
+    @Override
+    public ScheduleOptions NOW(int times, long period) {
+        throw new IllegalStateException("not yet impl");
+    }
+
+    @Override
+    public ScheduleOptions AT(Date date) {
+        throw new IllegalStateException("not yet impl");
+    }
+
+    @Override
+    public ScheduleOptions AT(Date date, int times, long period) {
+        throw new IllegalStateException("not yet impl");
+    }
+
+    @Override
+    public ScheduleOptions EXPR(String expression) {
+        throw new IllegalStateException("not yet impl");
+    }
+
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.