661662663664665666667668669670671
*/ public Calendar retrieveCalendar(SchedulingContext ctxt, String calName) { synchronized (lock) { Calendar cal = (Calendar) calendarsByName.get(calName); if(cal != null) return (Calendar) cal.clone(); return null; } } /**
766767768769770771772773774775776
*/ public Calendar retrieveCalendar(String calName) { synchronized (lock) { Calendar cal = calendarsByName.get(calName); if(cal != null) return (Calendar) cal.clone(); return null; } } /**
917918919920921922923924925926927
@Override public Calendar retrieveCalendar(String calName) throws JobPersistenceException { lock(); try { Calendar cw = calendarsByName.get(calName); return (Calendar) (cw == null ? null : cw.clone()); } finally { unlock(); } }
662663664665666667668669670671672