Class GrailsPlaceholderConfigurer

  • All Implemented Interfaces:
    GrailsConfigurationAware, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.EnvironmentAware, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

    public class GrailsPlaceholderConfigurer
    extends org.springframework.context.support.PropertySourcesPlaceholderConfigurer
    implements GrailsConfigurationAware
    Uses Grails' ConfigObject for place holder values.
    Since:
    1.0
    • Field Summary

      • Fields inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer

        ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME, LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME
      • Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

        DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator
      • Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

        localOverride, localProperties, logger
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doProcessProperties​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess, org.springframework.util.StringValueResolver valueResolver)  
      java.util.Properties getProperties()  
      protected void loadProperties​(java.util.Properties props)  
      void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  
      void setBeanName​(java.lang.String beanName)  
      void setConfiguration​(grails.config.Config co)  
      • Methods inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer

        getAppliedPropertySources, postProcessBeanFactory, processProperties, processProperties, setEnvironment, setPropertySources
      • Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

        setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator
      • Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer

        convertProperties, convertProperty, convertPropertyValue, getOrder, setOrder
      • Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

        mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrailsPlaceholderConfigurer

        public GrailsPlaceholderConfigurer​(java.lang.String placeHolderPrefix,
                                           java.util.Properties properties)
      • GrailsPlaceholderConfigurer

        public GrailsPlaceholderConfigurer()
    • Method Detail

      • loadProperties

        protected void loadProperties​(java.util.Properties props)
                               throws java.io.IOException
        Overrides:
        loadProperties in class org.springframework.core.io.support.PropertiesLoaderSupport
        Throws:
        java.io.IOException
      • getProperties

        public java.util.Properties getProperties()
      • setBeanName

        public void setBeanName​(java.lang.String beanName)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
        Overrides:
        setBeanName in class org.springframework.beans.factory.config.PlaceholderConfigurerSupport
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Overrides:
        setBeanFactory in class org.springframework.beans.factory.config.PlaceholderConfigurerSupport
      • doProcessProperties

        protected void doProcessProperties​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
                                           org.springframework.util.StringValueResolver valueResolver)
        Overrides:
        doProcessProperties in class org.springframework.beans.factory.config.PlaceholderConfigurerSupport