Skip to content

Commit

Permalink
ASGARD-1166 - Run MonkeyPatcherService and CacheLoadStartService duri…
Browse files Browse the repository at this point in the history
…ng Bootstrap

Now with comments to explain why the "unused" variables need to be declared here, so I won't "clean them up" again later.
  • Loading branch information
Joe Sondow committed Jun 17, 2013
1 parent c7b2bc2 commit aa10a38
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 aa10a38

Please sign in to comment.