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