Replies: 1 comment 7 replies
-
Would it not be more clean and correct to just add the type to the Closure parameter? class BootStrap {
def init = { ServletContext servletContext ->
}
def destroy = {
}
} |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since we can inject
ServletContext
inBootStrap.groovy
I am proposing to cleanup theinit
closure from this:to this:
Benefits:
init
code changeServletContext
from other artifacts like Controllers, Services, etc..servletContext
Beta Was this translation helpful? Give feedback.
All reactions