Quartz JobDetail Method Missing

I have an application that depends on the version of Quartz 1.6.4. I upgraded Quartz to 2.1.6 and then came with a compilation error:

The JobDetail class has changed to an interface in the new version and no longer supports the getGroup () method.

How can I solve this problem?

+4
source share
1 answer
JobDetail jobDetail; String answer = jobDetail.getKey().getGroup(); 

http://quartz-scheduler.org/api/2.0.0/org/quartz/JobDetail.html#getKey ()

+5
source

Source: https://habr.com/ru/post/1493455/


All Articles