You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2014/03/28 11:55:32 UTC

git commit: DELTASPIKE-548 alternative scheduler producer

Repository: deltaspike
Updated Branches:
  refs/heads/master d11390049 -> 89cad059f


DELTASPIKE-548 alternative scheduler producer


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/89cad059
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/89cad059
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/89cad059

Branch: refs/heads/master
Commit: 89cad059f68fe5bbc058c4e579c7135eeaf4b20a
Parents: d113900
Author: gpetracek <gp...@apache.org>
Authored: Fri Mar 28 11:51:33 2014 +0100
Committer: gpetracek <gp...@apache.org>
Committed: Fri Mar 28 11:51:33 2014 +0100

----------------------------------------------------------------------
 .../scheduler/impl/QuartzSchedulerProducer.java | 37 ++++++++++++++++++++
 1 file changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/89cad059/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/QuartzSchedulerProducer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/QuartzSchedulerProducer.java b/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/QuartzSchedulerProducer.java
new file mode 100644
index 0000000..4bce48a
--- /dev/null
+++ b/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/QuartzSchedulerProducer.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.scheduler.impl;
+
+import org.apache.deltaspike.scheduler.spi.Scheduler;
+import org.quartz.Job;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.inject.Alternative;
+import javax.enterprise.inject.Produces;
+
+@Alternative
+public class QuartzSchedulerProducer extends SchedulerProducer
+{
+    @Produces
+    @ApplicationScoped
+    protected Scheduler<Job> produceScheduler()
+    {
+        return super.produceScheduler();
+    }
+}