Skip to content

Commit

Permalink
Merge pull request #322 from joesondow/ASGARD-1166-MonkeyPatcherServi…
Browse files Browse the repository at this point in the history
…ce-CacheLoadStartService

ASGARD-1166 - MonkeyPatcherService & CacheLoadStartService in BootStrap
  • Loading branch information
joesondow committed Jun 17, 2013
2 parents c7b2bc2 + aa10a38 commit b2d0e23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions grails-app/conf/BootStrap.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ import grails.converters.JSON

class BootStrap {

/** This "unused" variable needs to be declared here in order to get the referenced service initialized early. */
def cacheLoadStartService

def configService
def initService

/** This "unused" variable needs to be declared here in order to get the referenced service initialized early. */
def monkeyPatcherService

def init = { servletContext ->
if (configService.appConfigured) { // Only start warming the caches if Asgard has been configured
initService.initializeApplication()
Expand Down

0 comments on commit b2d0e23

Please sign in to comment.