From aa10a38b86ee26e2a1f0a7b9617a135c159277b3 Mon Sep 17 00:00:00 2001 From: Joe Sondow Date: Mon, 17 Jun 2013 11:07:24 -0700 Subject: [PATCH] ASGARD-1166 - Run MonkeyPatcherService and CacheLoadStartService during Bootstrap Now with comments to explain why the "unused" variables need to be declared here, so I won't "clean them up" again later. --- grails-app/conf/BootStrap.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grails-app/conf/BootStrap.groovy b/grails-app/conf/BootStrap.groovy index 5d1590f8..86223b22 100644 --- a/grails-app/conf/BootStrap.groovy +++ b/grails-app/conf/BootStrap.groovy @@ -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()