[jboss-cvs] JBossAS SVN: r109113 - projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 4 05:19:44 EDT 2010


Author: wolfc
Date: 2010-11-04 05:19:43 -0400 (Thu, 04 Nov 2010)
New Revision: 109113

Added:
   projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory_2.java
Modified:
   projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory.java
Log:
EJBTHREE-2193: added restoreTimerService(TimerService, ClassLoader)


Modified: projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory.java
===================================================================
--- projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory.java	2010-11-04 09:14:59 UTC (rev 109112)
+++ projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory.java	2010-11-04 09:19:43 UTC (rev 109113)
@@ -46,6 +46,8 @@
     * 
     * @param timerService the timerService that should restore its timers
     * @throws NullPointerException if timerService is null
+    * @deprecated
+    * @see TimerServiceFactory_2#restoreTimerService(javax.ejb.TimerService, ClassLoader) 
     */
    void restoreTimerService(TimerService timerService);
    

Added: projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory_2.java
===================================================================
--- projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory_2.java	                        (rev 0)
+++ projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/TimerServiceFactory_2.java	2010-11-04 09:19:43 UTC (rev 109113)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.timerservice.spi;
+
+import javax.ejb.TimerService;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public interface TimerServiceFactory_2 extends TimerServiceFactory
+{
+   /**
+    * Restores the timers held by the specified timer service.
+    * Once a TimerObjectInvoker is ready to receive callbacks, it should call this function.
+    *
+    * @param timerService the timerService that should restore its timers
+    * @param loader the ClassLoader to load the timers with
+    * @throws NullPointerException if timerService is null
+    */
+   void restoreTimerService(TimerService timerService, ClassLoader loader);   
+}



More information about the jboss-cvs-commits mailing list