public class GrailsBeanPropertyOverrideConfigurer extends Object implements BeanFactoryPostProcessor, PriorityOrdered
Property resource configurer that overrides bean property values in an application context definition. It pushes values from a properties file or 'application.groovy' into bean definitions.
You define a beans block with the names of beans and their values:
beans { bookService { webServiceURL = "http://www.amazon.com" } }
The general format is:
<bean name>.<property name> = <value>The same configuration in a Java properties file would be:
beans.bookService.webServiceURL=http://www.amazon.com
Constructor and description |
---|
GrailsBeanPropertyOverrideConfigurer(GrailsApplication grailsApplication) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
applyPropertyValue(ConfigurableListableBeanFactory factory, String beanName, String property, String value) |
|
protected Map<String, Object> |
getBeansConfig() |
|
public int |
getOrder() |
|
protected BeanDefinition |
getTargetBeanDefinition(ConfigurableListableBeanFactory factory, String beanName) |
|
protected BeanDefinition |
getTargetBeanDefinition(ConfigurableListableBeanFactory factory, String beanName, BeanDefinition beanDefinition) |
|
protected BeanDefinition |
getTargetBeanDefinition(ConfigurableListableBeanFactory factory, String beanName, BeanDefinition beanDefinition, Class<?> beanClass) |
|
protected BeanDefinition |
getTargetBeanDefinitionForFactoryBean(ConfigurableListableBeanFactory factory, String beanName, BeanDefinition beanDefinition, Class<?> beanClass) |
|
public void |
postProcessBeanFactory(ConfigurableListableBeanFactory factory) |
|
public void |
setOrder(int order) Set the order value of this object for sorting purposes. |
Set the order value of this object for sorting purposes.