[#SPR-8556] setCronExpression method not exposed

advertisement
[SPR-8556] setCronExpression method not exposed in CronTriggerBean Created:
23/Jul/11 Updated: 10/Aug/11 Resolved: 25/Jul/11
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Resolved
Spring Framework
Core
3.1 M2
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Bug
Greg Lively
Won't Fix
None
Not Specified
Issue Links:
Relate
relates to
None
Priority:
Assignee:
Votes:
Major
Juergen Hoeller
0
Not Specified
Not Specified
SPR-8275
Support Quartz 2.0.x
Closed
4 years, 29 weeks, 1 day ago
Days since last
comment:
Last commented false
by a User:
Trevor Marshall
Last updater:
Description
The CronTriggerBean does not expose the setCronExpression() method. It looks like the Spring
CronTriggerBean should extend the QUARTZ CronTriggerImpl, not the QUARTZ interface??
of CronTrigger, which only contain 4 getter methods. I have no idea where it would get access
to setCronExpression any other way.
Comments
Comment by Juergen Hoeller [ 25/Jul/11 ]
This is an effect of Quartz 2.0's rearchitecture of its core APIs which breaks quite a bit of
Spring's traditional Quartz support. As a consequence of that, up until Spring 3.1 M2, Spring is
only fully compatible with Quartz 1.x.
As of Spring 3.1 RC1 (scheduled for release in August), we officially support Quartz 2.0 next to
Quartz 1.5+ now: see . Hoever, CronTriggerBean, SimpleTriggerBean and JobDetailBean do
not work against Quartz 2.0: They are marked as only compatible with Quartz 1.x now.
With Spring 3.1 and Quartz 2.0, we recommend use of the native Quartz 2.0 JobDetailImpl etc
classes or of Quartz 2.0's corresponding builder APIs. This should work nicely in Spring 3
@Bean methods, populating SchedulerFactoryBean's "triggers" and "jobDetails" properties.
Note that you may also @Inject the Scheduler in any application component and schedule jobs
using the native schedule methods there, for example in your @PostConstruct methods. That
way, programmatic scheduling can be used for such 'static' registration of triggers and jobs as
well.
Juergen
Generated at Tue Feb 09 21:40:15 UTC 2016 using JIRA 6.4.11#64026sha1:78f6ec473a3f058bd5d6c30e9319c7ab376bdb9c.
Download