container/timers/src/main/java/org/mobicents/slee/runtime/facilities/TimerFacilityImpl.java
public ActivityContextInterface getActivityContextInterface(TimerID timerID)
			throws NullPointerException, TransactionRequiredLocalException,
			FacilityException {
		if (timerID == null) {
			throw new NullPointerException("null timerID");
		}
		
		sleeContainer.getTransactionManager().mandateTransaction();
		
		TimerFacilityTimerTaskData taskData = (TimerFacilityTimerTaskData) scheduler.getTimerTaskData(timerID);
		if (taskData != null) {
			try {
				return sleeContainer.getActivityContextFactory().getActivityContext(taskData.getActivityContextHandle()).getActivityContextInterface();
			} catch (Exception e) {
				throw new FacilityException(e.getMessage(),e);
			}
		}
		else {
			return null;		
		}
	}
public ActivityContextInterface getActivityContextInterface(TimerID timerID)
			throws NullPointerException, TransactionRequiredLocalException,
			FacilityException {
		if (timerID == null) {
			throw new NullPointerException("null timerID");
		}
		
		sleeContainer.getTransactionManager().mandateTransaction();
		
		TimerFacilityTimerTaskData taskData = (TimerFacilityTimerTaskData) scheduler.getTimerTaskData(timerID);
		if (taskData != null) {
			try {
				return sleeContainer.getActivityContextFactory().getActivityContext(taskData.getActivityContextHandle()).getActivityContextInterface();
			} catch (Exception e) {
				throw new FacilityException(e.getMessage(),e);
			}
		}
		else {
			return null;		
		}
	}
public ActivityContextInterface getActivityContextInterface ( TimerID timerID ) throws NullPointerException , TransactionRequiredLocalException , FacilityException { if ( timerID == null ) { throw new NullPointerException ( "null timerID" ) ; } sleeContainer . getTransactionManager ( ) . mandateTransaction ( ) ; TimerFacilityTimerTaskData taskData = ( TimerFacilityTimerTaskData ) scheduler . getTimerTaskData ( timerID ) ; if ( taskData != null ) { try { return sleeContainer . getActivityContextFactory ( ) . getActivityContext ( taskData . getActivityContextHandle ( ) ) . getActivityContextInterface ( ) ; } catch ( Exception e ) { throw new FacilityException ( e . getMessage ( ) , e ) ; } } else { return null ; } }
/*
(non-Javadoc)
@see javax.slee.facilities.TimerFacility#getActivityContextInterface(javax.slee.facilities.TimerID)
/ * ( non - Javadoc )