Class GrailsConfigUtils

java.lang.Object
org.grails.web.servlet.context.GrailsConfigUtils

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    configureServletContextAttributes(jakarta.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, jakarta.servlet.ServletContext servletContext)
    Deprecated.
    static void
    executeGrailsBootstraps(grails.core.GrailsApplication application, org.springframework.web.context.WebApplicationContext webContext, jakarta.servlet.ServletContext servletContext, grails.plugins.GrailsPluginManager grailsPluginManager)
    Executes Grails bootstrap classes
    static boolean
    isConfigTrue(grails.core.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 Details

    • GrailsConfigUtils

      public GrailsConfigUtils()
  • Method Details

    • executeGrailsBootstraps

      @Deprecated public static void executeGrailsBootstraps(grails.core.GrailsApplication application, org.springframework.web.context.WebApplicationContext webContext, jakarta.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, jakarta.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(jakarta.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, 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(Object application, String propertyName)