From 7c6da9c72bb60611aa23955f245be2329251d960 Mon Sep 17 00:00:00 2001 From: "g.sartori" Date: Thu, 13 Feb 2025 14:28:09 +0100 Subject: [PATCH] BootStrap init closure servletContext cleanup --- .../grails-app/init/BootStrap.groovy | 7 ++++++- examples/grails3-neo4j/grails-app/init/BootStrap.groovy | 7 ++++++- .../grails-app/init/example/BootStrap.groovy | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/examples/grails3-neo4j-hibernate/grails-app/init/BootStrap.groovy b/examples/grails3-neo4j-hibernate/grails-app/init/BootStrap.groovy index 1287daee..786c727d 100644 --- a/examples/grails3-neo4j-hibernate/grails-app/init/BootStrap.groovy +++ b/examples/grails3-neo4j-hibernate/grails-app/init/BootStrap.groovy @@ -1,7 +1,12 @@ +import javax.servlet.ServletContext + class BootStrap { - def init = { servletContext -> + ServletContext servletContext + + def init = { } + def destroy = { } } diff --git a/examples/grails3-neo4j/grails-app/init/BootStrap.groovy b/examples/grails3-neo4j/grails-app/init/BootStrap.groovy index 1287daee..786c727d 100644 --- a/examples/grails3-neo4j/grails-app/init/BootStrap.groovy +++ b/examples/grails3-neo4j/grails-app/init/BootStrap.groovy @@ -1,7 +1,12 @@ +import javax.servlet.ServletContext + class BootStrap { - def init = { servletContext -> + ServletContext servletContext + + def init = { } + def destroy = { } } diff --git a/examples/test-data-service/grails-app/init/example/BootStrap.groovy b/examples/test-data-service/grails-app/init/example/BootStrap.groovy index 72406d5c..595a09c9 100644 --- a/examples/test-data-service/grails-app/init/example/BootStrap.groovy +++ b/examples/test-data-service/grails-app/init/example/BootStrap.groovy @@ -1,9 +1,14 @@ package example +import javax.servlet.ServletContext + class BootStrap { - def init = { servletContext -> + ServletContext servletContext + + def init = { } + def destroy = { } }