Class GrailsConfigUtils


  • public class GrailsConfigUtils
    extends java.lang.Object
    A common class where shared configurational methods can reside.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void configureServletContextAttributes​(javax.servlet.ServletContext servletContext, grails.core.GrailsApplication application, grails.plugins.GrailsPluginManager pluginManager, org.springframework.web.context.WebApplicationContext webContext)  
      static void executeGrailsBootstraps​(grails.core.GrailsApplication application, org.springframework.web.context.WebApplicationContext webContext, javax.servlet.ServletContext servletContext)
      Deprecated.
      static void executeGrailsBootstraps​(grails.core.GrailsApplication application, org.springframework.web.context.WebApplicationContext webContext, javax.servlet.ServletContext servletContext, grails.plugins.GrailsPluginManager grailsPluginManager)
      Executes Grails bootstrap classes
      static boolean isConfigTrue​(grails.core.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
    • Constructor Detail

      • GrailsConfigUtils

        public GrailsConfigUtils()
    • Method Detail

      • executeGrailsBootstraps

        @Deprecated
        public static void executeGrailsBootstraps​(grails.core.GrailsApplication application,
                                                   org.springframework.web.context.WebApplicationContext webContext,
                                                   javax.servlet.ServletContext servletContext)
        Deprecated.
        Executes Grails bootstrap classes
        Parameters:
        application - The Grails ApplicationContext instance
        webContext - The WebApplicationContext instance
        servletContext - The ServletContext instance
      • executeGrailsBootstraps

        public static void executeGrailsBootstraps​(grails.core.GrailsApplication application,
                                                   org.springframework.web.context.WebApplicationContext webContext,
                                                   javax.servlet.ServletContext servletContext,
                                                   grails.plugins.GrailsPluginManager grailsPluginManager)
        Executes Grails bootstrap classes
        Parameters:
        application - The Grails ApplicationContext instance
        webContext - The WebApplicationContext instance
        servletContext - The ServletContext instance
      • configureServletContextAttributes

        public static void configureServletContextAttributes​(javax.servlet.ServletContext servletContext,
                                                             grails.core.GrailsApplication application,
                                                             grails.plugins.GrailsPluginManager pluginManager,
                                                             org.springframework.web.context.WebApplicationContext webContext)
      • isConfigTrue

        public static boolean isConfigTrue​(grails.core.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)