Package org.grails.web.servlet.context
Class GrailsConfigUtils
java.lang.Object
org.grails.web.servlet.context.GrailsConfigUtils
A common class where shared configurational methods can reside.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureServletContextAttributes(jakarta.servlet.ServletContext servletContext, grails.core.GrailsApplication application, grails.plugins.GrailsPluginManager pluginManager, org.springframework.web.context.WebApplicationContext webContext) static voidexecuteGrailsBootstraps(grails.core.GrailsApplication application, org.springframework.web.context.WebApplicationContext webContext, jakarta.servlet.ServletContext servletContext) Deprecated.static voidexecuteGrailsBootstraps(grails.core.GrailsApplication application, org.springframework.web.context.WebApplicationContext webContext, jakarta.servlet.ServletContext servletContext, grails.plugins.GrailsPluginManager grailsPluginManager) Executes Grails bootstrap classesstatic booleanisConfigTrue(grails.core.GrailsApplication application, String propertyName) Checks if a Config parameter is true or a System property with the same name is truestatic booleanisConfigTrue(Object application, String propertyName)
-
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 instancewebContext- The WebApplicationContext instanceservletContext- 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 instancewebContext- The WebApplicationContext instanceservletContext- 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
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
-