Class GrailsPlaceholderConfigurer
- java.lang.Object
-
- org.springframework.core.io.support.PropertiesLoaderSupport
-
- org.springframework.beans.factory.config.PropertyResourceConfigurer
-
- org.springframework.beans.factory.config.PlaceholderConfigurerSupport
-
- org.springframework.context.support.PropertySourcesPlaceholderConfigurer
-
- org.grails.spring.context.support.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
-
-
Constructor Summary
Constructors Constructor Description GrailsPlaceholderConfigurer()GrailsPlaceholderConfigurer(java.lang.String placeHolderPrefix, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoProcessProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess, org.springframework.util.StringValueResolver valueResolver)java.util.PropertiesgetProperties()protected voidloadProperties(java.util.Properties props)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetBeanName(java.lang.String beanName)voidsetConfiguration(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
-
-
-
-
Method Detail
-
loadProperties
protected void loadProperties(java.util.Properties props) throws java.io.IOException- Overrides:
loadPropertiesin classorg.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:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware- Overrides:
setBeanNamein classorg.springframework.beans.factory.config.PlaceholderConfigurerSupport
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Overrides:
setBeanFactoryin classorg.springframework.beans.factory.config.PlaceholderConfigurerSupport
-
doProcessProperties
protected void doProcessProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess, org.springframework.util.StringValueResolver valueResolver)- Overrides:
doProcessPropertiesin classorg.springframework.beans.factory.config.PlaceholderConfigurerSupport
-
setConfiguration
public void setConfiguration(grails.config.Config co)
- Specified by:
setConfigurationin interfaceGrailsConfigurationAware
-
-