Class GrailsEnvironment

  • All Implemented Interfaces:
    org.springframework.core.env.ConfigurableEnvironment, org.springframework.core.env.ConfigurablePropertyResolver, org.springframework.core.env.Environment, org.springframework.core.env.PropertyResolver, org.springframework.web.context.ConfigurableWebEnvironment

    public class GrailsEnvironment
    extends org.springframework.web.context.support.StandardServletEnvironment
    Bridges Grails' existing environment API with the new Spring 3.1 environment profiles API.
    Since:
    2.0
    • Field Summary

      • Fields inherited from class org.springframework.web.context.support.StandardServletEnvironment

        JNDI_PROPERTY_SOURCE_NAME, SERVLET_CONFIG_PROPERTY_SOURCE_NAME, SERVLET_CONTEXT_PROPERTY_SOURCE_NAME
      • Fields inherited from class org.springframework.core.env.StandardEnvironment

        SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME
      • Fields inherited from class org.springframework.core.env.AbstractEnvironment

        ACTIVE_PROFILES_PROPERTY_NAME, DEFAULT_PROFILES_PROPERTY_NAME, IGNORE_GETENV_PROPERTY_NAME, logger, RESERVED_DEFAULT_PROFILE_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      GrailsEnvironment​(grails.core.GrailsApplication grailsApplication)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Set<java.lang.String> doGetActiveProfiles()  
      • Methods inherited from class org.springframework.web.context.support.StandardServletEnvironment

        customizePropertySources, initPropertySources
      • Methods inherited from class org.springframework.core.env.AbstractEnvironment

        acceptsProfiles, acceptsProfiles, addActiveProfile, containsProperty, createPropertyResolver, doGetActiveProfilesProperty, doGetDefaultProfiles, doGetDefaultProfilesProperty, getActiveProfiles, getConversionService, getDefaultProfiles, getProperty, getProperty, getProperty, getProperty, getPropertyResolver, getPropertySources, getRequiredProperty, getRequiredProperty, getReservedDefaultProfiles, getSystemEnvironment, getSystemProperties, isProfileActive, merge, resolvePlaceholders, resolveRequiredPlaceholders, setActiveProfiles, setConversionService, setDefaultProfiles, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, suppressGetenvAccess, toString, validateProfile, validateRequiredProperties
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.springframework.core.env.ConfigurableEnvironment

        addActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfiles
      • Methods inherited from interface org.springframework.core.env.ConfigurablePropertyResolver

        getConversionService, setConversionService, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredProperties
      • Methods inherited from interface org.springframework.core.env.Environment

        acceptsProfiles, acceptsProfiles, getActiveProfiles, getDefaultProfiles, matchesProfiles
      • Methods inherited from interface org.springframework.core.env.PropertyResolver

        containsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
    • Constructor Detail

      • GrailsEnvironment

        public GrailsEnvironment​(grails.core.GrailsApplication grailsApplication)
    • Method Detail

      • doGetActiveProfiles

        protected java.util.Set<java.lang.String> doGetActiveProfiles()
        Overrides:
        doGetActiveProfiles in class org.springframework.core.env.AbstractEnvironment