01: package com.bm.utils.substitues;
02:
03: import java.io.Serializable;
04: import java.util.Date;
05:
06: import javax.ejb.EJBException;
07: import javax.ejb.NoSuchObjectLocalException;
08: import javax.ejb.Timer;
09: import javax.ejb.TimerHandle;
10:
11: public class FakedTimer implements Timer {
12:
13: /**
14: * {@inheritDoc}
15: */
16: public void cancel() throws IllegalStateException,
17: NoSuchObjectLocalException, EJBException {
18:
19: }
20:
21: /**
22: * {@inheritDoc}
23: */
24: public TimerHandle getHandle() throws IllegalStateException,
25: NoSuchObjectLocalException, EJBException {
26: return null;
27: }
28:
29: /**
30: * {@inheritDoc}
31: */
32: public Serializable getInfo() throws IllegalStateException,
33: NoSuchObjectLocalException, EJBException {
34: return null;
35: }
36:
37: /**
38: * {@inheritDoc}
39: */
40: public Date getNextTimeout() throws IllegalStateException,
41: NoSuchObjectLocalException, EJBException {
42: return null;
43: }
44:
45: /**
46: * {@inheritDoc}
47: */
48: public long getTimeRemaining() throws IllegalStateException,
49: NoSuchObjectLocalException, EJBException {
50: return 0;
51: }
52:
53: }
|