ejb3/src/main/java/org/jboss/as/ejb3/timerservice/TimerHandleImpl.java
public Timer getTimer() throws IllegalStateException, EJBException {
        if (service == null) {
            // get hold of the timer service through the use of timed object id
            service = (TimerServiceImpl) currentServiceContainer().getRequiredService(ServiceName.parse(serviceName)).getValue();
            if (service == null) {
                throw EjbLogger.EJB3_TIMER_LOGGER.timerServiceWithIdNotRegistered(timedObjectId);
            }
        }
        final TimerImpl timer = this.service.getTimer(this);
        if (timer == null || !timer.isActive()) {
            throw EjbLogger.EJB3_TIMER_LOGGER.timerHandleIsNotActive(this);
        }
        return timer;
    }
public Timer getTimer() throws IllegalStateException, EJBException {
        if (service == null) {
            // get hold of the timer service through the use of timed object id
            service = (TimerServiceImpl) currentServiceContainer().getRequiredService(ServiceName.parse(serviceName)).getValue();
            if (service == null) {
                throw EjbLogger.EJB3_TIMER_LOGGER.timerServiceWithIdNotRegistered(timedObjectId);
            }
        }
        final TimerImpl timer = this.service.getTimer(this);
        if (timer == null || !timer.isActive()) {
            throw EjbLogger.EJB3_TIMER_LOGGER.timerHandleIsNotActive(this);
        }
        return timer;
    }
public Timer getTimer ( ) throws IllegalStateException , EJBException { if ( service == null ) { // get hold of the timer service through the use of timed object id service = ( TimerServiceImpl ) currentServiceContainer ( ) . getRequiredService ( ServiceName . parse ( serviceName ) ) . getValue ( ) ; if ( service == null ) { throw EjbLogger . EJB3_TIMER_LOGGER . timerServiceWithIdNotRegistered ( timedObjectId ) ; } } final TimerImpl timer = this . service . getTimer ( this ) ; if ( timer == null || ! timer . isActive ( ) ) { throw EjbLogger . EJB3_TIMER_LOGGER . timerHandleIsNotActive ( this ) ; } return timer ; }
Returns the {@link javax.ejb.Timer} corresponding to this timer handle
<p/>
{@inheritDoc}
Returns the {