/** * <p> * Create a <code>CronTrigger</code> with no settings. * </p> * <p> * The start-time will also be set to the current time, and the time zone will be set the the system's default time zone. * </p> */ public CronTriggerImpl() { super(); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * Create a <code>CronTrigger</code> with no settings. * * <p>The start-time will also be set to the current time, and the time zone will be set the the * system's default time zone. */ public CronTriggerImpl() { super(); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with no settings. * </p> * <p> * The start-time will also be set to the current time, and the time zone will be set the the system's default time zone. * </p> */ public CronTriggerImpl() { super(); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but will rather be invoked by a TriggerBuilder which this ScheduleBuilder is * given to. */ @Override public OperableTrigger instantiate() { CronTriggerImpl ct = new CronTriggerImpl(); try { ct.setCronExpression(cronExpression); } catch (ParseException e) { // all methods of construction ensure the expression is valid by this point... throw new RuntimeException("CronExpression '" + cronExpression + "' is invalid, which should not be possible, please report bug to Quartz developers."); } ct.setTimeZone(tz); ct.setMisfireInstruction(misfireInstruction); return ct; }
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but will rather be invoked by a TriggerBuilder which this ScheduleBuilder is * given to. */ @Override public OperableTrigger instantiate() { CronTriggerImpl ct = new CronTriggerImpl(); try { ct.setCronExpression(cronExpression); } catch (ParseException e) { // all methods of construction ensure the expression is valid by this point... throw new RuntimeException( "CronExpression '" + cronExpression + "' is invalid, which should not be possible, please report bug to Quartz developers."); } ct.setTimeZone(tz); ct.setMisfireInstruction(misfireInstruction); return ct; }
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but will rather be invoked * by a TriggerBuilder which this ScheduleBuilder is given to. */ @Override public OperableTrigger instantiate() { CronTriggerImpl ct = new CronTriggerImpl(); try { ct.setCronExpression(cronExpression); } catch (ParseException e) { // all methods of construction ensure the expression is valid by this point... throw new RuntimeException( "CronExpression '" + cronExpression + "' is invalid, which should not be possible, please report bug to Quartz developers."); } ct.setTimeZone(tz); ct.setMisfireInstruction(misfireInstruction); return ct; }