public class GrailsConfigUtils
extends java.lang.Object
| Constructor and Description |
|---|
GrailsConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureServletContextAttributes(javax.servlet.ServletContext servletContext,
org.codehaus.groovy.grails.commons.GrailsApplication application,
org.codehaus.groovy.grails.plugins.GrailsPluginManager pluginManager,
org.springframework.web.context.WebApplicationContext webContext) |
static org.springframework.web.context.WebApplicationContext |
configureWebApplicationContext(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext parent) |
static GrailsRuntimeConfigurator |
determineGrailsRuntimeConfiguratorFromServletContext(org.codehaus.groovy.grails.commons.GrailsApplication application,
javax.servlet.ServletContext servletContext,
org.springframework.context.ApplicationContext parent) |
static void |
executeGrailsBootstraps(org.codehaus.groovy.grails.commons.GrailsApplication application,
org.springframework.web.context.WebApplicationContext webContext,
javax.servlet.ServletContext servletContext)
Executes Grails bootstrap classes
|
static boolean |
isConfigTrue(org.codehaus.groovy.grails.commons.GrailsApplication application,
java.lang.String propertyName)
Checks if a Config parameter is true or a System property with the same name is true
|
static boolean |
isConfigTrue(java.lang.Object application,
java.lang.String propertyName) |
public static void executeGrailsBootstraps(org.codehaus.groovy.grails.commons.GrailsApplication application,
org.springframework.web.context.WebApplicationContext webContext,
javax.servlet.ServletContext servletContext)
application - The Grails ApplicationContext instancewebContext - The WebApplicationContext instanceservletContext - The ServletContext instancepublic static org.springframework.web.context.WebApplicationContext configureWebApplicationContext(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext parent)
public static void configureServletContextAttributes(javax.servlet.ServletContext servletContext,
org.codehaus.groovy.grails.commons.GrailsApplication application,
org.codehaus.groovy.grails.plugins.GrailsPluginManager pluginManager,
org.springframework.web.context.WebApplicationContext webContext)
public static GrailsRuntimeConfigurator determineGrailsRuntimeConfiguratorFromServletContext(org.codehaus.groovy.grails.commons.GrailsApplication application, javax.servlet.ServletContext servletContext, org.springframework.context.ApplicationContext parent)
public static boolean isConfigTrue(org.codehaus.groovy.grails.commons.GrailsApplication application,
java.lang.String propertyName)
application - propertyName - public static boolean isConfigTrue(java.lang.Object application,
java.lang.String propertyName)