Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Fixed #8 by doing nothing with the ApplicationContext
Browse files Browse the repository at this point in the history
  • Loading branch information
hbogaards committed Mar 29, 2017
1 parent e70cdc3 commit e470c48
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ class SchwartzGrailsPlugin extends Plugin {
}}

void doWithApplicationContext() {
if (!grailsApplication.config.getProperty('quartz.pluginEnabled', Boolean, true)) {
log.info 'Not initializing, quartz.pluginEnabled is false'
return
}

applicationContext.getBean('quartzJobFactory', SchwartzJobFactory).init()

applicationContext.getBean('quartzService', QuartzService).init()
Expand Down

0 comments on commit e470c48

Please sign in to comment.