Created
August 16, 2012 18:34
-
-
Save joeRinehart/3372475 to your computer and use it in GitHub Desktop.
Spring Beans in Bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.web.context.support.WebApplicationContextUtils | |
class BootStrap { | |
def init = { servletContext -> | |
// Get spring | |
def springContext = WebApplicationContextUtils.getWebApplicationContext( servletContext ) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mystuff.WhatAWonderfulUtility | |
// Place your Spring DSL code here | |
beans = { | |
whatAWonderfulUtility( WhatAWonderfulUtility ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment