是否可以覆盖Grails插件的doWithApplicationContext方法?

是否可以覆盖Grails插件的doWithApplicationContext方法?,grails,Grails,我用的是童车,我迫不及待地想把它修好。我需要以某种方式重写QuartzGrailsPlugin中的方法: 也许,我应该阻止调用scheduleJob方法 或者说,唯一正确的方法是分叉这个插件吗?这个问题在JIRA中报告过吗?是的, def doWithApplicationContext = { applicationContext -> application.jobClasses.each { GrailsJobClass jobClass -> sche

我用的是童车,我迫不及待地想把它修好。我需要以某种方式重写QuartzGrailsPlugin中的方法:

也许,我应该阻止调用scheduleJob方法


或者说,唯一正确的方法是分叉这个插件吗?

这个问题在JIRA中报告过吗?是的,
def doWithApplicationContext = { applicationContext ->
    application.jobClasses.each { GrailsJobClass jobClass ->
        scheduleJob(jobClass, applicationContext, hasHibernate(manager))
    }
    log.debug("Scheduled Job Classes count: " + application.jobClasses.size())
}