FileDocCategorySizeDatePackage
TimerServiceFactory.javaAPI DocJBoss 4.2.12690Fri Jul 13 20:53:54 BST 2007org.jboss.ejb3.timerservice

TimerServiceFactory

public abstract class TimerServiceFactory extends Object
Comment
author
Carlo de Wolf
version
$Revision: $

Fields Summary
private static TimerServiceFactory
instance
Constructors Summary
Methods Summary
private static synchronized org.jboss.ejb3.timerservice.TimerServiceFactorycreateInstance()

      if(instance != null)
         return instance;
      
      String factoryClass = "org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory";
      factoryClass = System.getProperty("org.jboss.ejb3.timerservice.factory", factoryClass);
      
      try
      {
         Class cls = Class.forName(factoryClass);
         instance = (TimerServiceFactory) cls.newInstance();
         
         return instance;
      }
      catch(ClassNotFoundException e)
      {
         throw new EJBException(e);
      }
      catch(InstantiationException e)
      {
         throw new EJBException(e);
      }
      catch(IllegalAccessException e)
      {
         throw new EJBException(e);
      }
   
public abstract javax.ejb.TimerServicecreateTimerService(javax.management.ObjectName objectName, TimedObjectInvoker invoker)

public static org.jboss.ejb3.timerservice.TimerServiceFactorygetInstance()

      if(instance == null)
      {
         createInstance();
      }
      
      return instance;
   
public abstract voidremoveTimerService(javax.ejb.TimerService timerService)

public abstract voidrestoreTimerService(javax.ejb.TimerService timerService)
Restores the timers held with the specified timer service.

param
timerService