|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easybeans.examples.timerservice.TimedObjectBean
public class TimedObjectBean
Bean that implements the TimedObject interface.
The timeout method will be ejbTimeout().
Constructor Summary | |
---|---|
TimedObjectBean()
|
Method Summary | |
---|---|
void |
ejbTimeout(Timer timer)
Invoked by the EJB container upon timer expiration. |
void |
setTimerService(TimerService timerService)
Use a setter method to inject the timer service. |
void |
startTimer()
Local method that is used by the other bean in order to start a timer on this bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimedObjectBean()
Method Detail |
---|
public void startTimer()
startTimer
in interface TimedLocal
public void ejbTimeout(Timer timer)
ejbTimeout
in interface TimedObject
timer
- timer whose expiration caused this notification.public void setTimerService(TimerService timerService)
timerService
- the instance of the timer service.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |