org.objectweb.easybeans.component.quartz
Class EasyBeansTimerHandle

java.lang.Object
  extended by org.objectweb.easybeans.component.quartz.EasyBeansTimerHandle
All Implemented Interfaces:
java.io.Serializable, TimerHandle

public class EasyBeansTimerHandle
extends java.lang.Object
implements TimerHandle

Implementation of the Timer handle interface.

Author:
Florent Benoit
See Also:
Serialized Form

Field Summary
private  EasyBeansJobDetail easyBeansJobDetail
          JobDetail used to get parameters.
private static long serialVersionUID
          Serial version UID for serializable classes.
 
Constructor Summary
EasyBeansTimerHandle(EasyBeansJobDetail easyBeansJobDetail)
          Constructor.
 
Method Summary
 Timer getTimer()
          Obtain a reference to the timer represented by this handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID for serializable classes.

See Also:
Constant Field Values

easyBeansJobDetail

private EasyBeansJobDetail easyBeansJobDetail
JobDetail used to get parameters.

Constructor Detail

EasyBeansTimerHandle

public EasyBeansTimerHandle(EasyBeansJobDetail easyBeansJobDetail)
Constructor. Build an handle for this timer.

Parameters:
easyBeansJobDetail - the job detail.
Method Detail

getTimer

public Timer getTimer()
               throws java.lang.IllegalStateException,
                      NoSuchObjectLocalException,
                      EJBException
Obtain a reference to the timer represented by this handle.

Specified by:
getTimer in interface TimerHandle
Returns:
a reference to the timer represented by this handle.
Throws:
java.lang.IllegalStateException - If this method is invoked while the instance is in a state that does not allow access to this method.
NoSuchObjectLocalException - If invoked on a handle whose associated timer has expired or has been cancelled.
EJBException - If this method could not complete due to a system-level failure.