org.codehaus.groovy.grails.web.context
Class GrailsConfigUtils
java.lang.Object
org.codehaus.groovy.grails.web.context.GrailsConfigUtils
public class GrailsConfigUtils
- extends java.lang.Object
A common class where shared configurational methods can reside.
|
Method Summary |
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 org.codehaus.groovy.grails.commons.spring.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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrailsConfigUtils
public GrailsConfigUtils()
executeGrailsBootstraps
public static void executeGrailsBootstraps(org.codehaus.groovy.grails.commons.GrailsApplication application,
org.springframework.web.context.WebApplicationContext webContext,
javax.servlet.ServletContext servletContext)
- Executes Grails bootstrap classes
- Parameters:
application - The Grails ApplicationContext instancewebContext - The WebApplicationContext instanceservletContext - The ServletContext instance
configureWebApplicationContext
public static org.springframework.web.context.WebApplicationContext configureWebApplicationContext(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext parent)
configureServletContextAttributes
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)
determineGrailsRuntimeConfiguratorFromServletContext
public static org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator determineGrailsRuntimeConfiguratorFromServletContext(org.codehaus.groovy.grails.commons.GrailsApplication application,
javax.servlet.ServletContext servletContext,
org.springframework.context.ApplicationContext parent)
isConfigTrue
public 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
- Parameters:
application - propertyName -
- Returns:
- true if the Config parameter is true or the System property with the same name is true
isConfigTrue
public static boolean isConfigTrue(java.lang.Object application,
java.lang.String propertyName)