org.codehaus.groovy.grails.web.context
Class GrailsConfigUtils

java.lang.Object
  extended by org.codehaus.groovy.grails.web.context.GrailsConfigUtils

public class GrailsConfigUtils
extends Object

A common class where shared configurational methods can reside.

Author:
Graeme Rocher

Constructor Summary
GrailsConfigUtils()
           
 
Method Summary
static void configureServletContextAttributes(ServletContext servletContext, GrailsApplication application, GrailsPluginManager pluginManager, WebApplicationContext webContext)
           
static WebApplicationContext configureWebApplicationContext(ServletContext servletContext, WebApplicationContext parent)
           
static GrailsRuntimeConfigurator determineGrailsRuntimeConfiguratorFromServletContext(GrailsApplication application, ServletContext servletContext, ApplicationContext parent)
           
static void executeGrailsBootstraps(GrailsApplication application, WebApplicationContext webContext, ServletContext servletContext)
          Executes Grails bootstrap classes
static boolean isConfigTrue(GrailsApplication application, String propertyName)
          Checks if a Config parameter is true or a System property with the same name is true
static boolean isConfigTrue(Object application, String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrailsConfigUtils

public GrailsConfigUtils()
Method Detail

executeGrailsBootstraps

public static void executeGrailsBootstraps(GrailsApplication application,
                                           WebApplicationContext webContext,
                                           ServletContext servletContext)
Executes Grails bootstrap classes

Parameters:
application - The Grails ApplicationContext instance
webContext - The WebApplicationContext instance
servletContext - The ServletContext instance

configureWebApplicationContext

public static WebApplicationContext configureWebApplicationContext(ServletContext servletContext,
                                                                   WebApplicationContext parent)

configureServletContextAttributes

public static void configureServletContextAttributes(ServletContext servletContext,
                                                     GrailsApplication application,
                                                     GrailsPluginManager pluginManager,
                                                     WebApplicationContext webContext)

determineGrailsRuntimeConfiguratorFromServletContext

public static GrailsRuntimeConfigurator determineGrailsRuntimeConfiguratorFromServletContext(GrailsApplication application,
                                                                                             ServletContext servletContext,
                                                                                             ApplicationContext parent)

isConfigTrue

public static boolean isConfigTrue(GrailsApplication application,
                                   String propertyName)
Checks if a Config parameter is true or a System property with the same name is true

Parameters:
application -
propertyName -
Returns:

isConfigTrue

public static boolean isConfigTrue(Object application,
                                   String propertyName)