public class BeanConfigurrer extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.PriorityOrdered
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
BeanConfigurrer() |
BeanConfigurrer(org.springframework.context.ApplicationContext applicationContext) |
BeanConfigurrer(org.springframework.context.ApplicationContext applicationContext,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
static void |
createParameterBeanDefinition(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
Object value) |
String |
getBeanName() |
Map<String,Object> |
getFields() |
int |
getOrder() |
boolean |
isIgnoreInvalidKeys() |
boolean |
isIgnoreUnresolvablePlaceholders() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected void |
processOverride(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String key,
Object value)
Process the given key as 'beanName.property' entry.
|
protected void |
processOverrideAttributes(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Map<String,Object> attributes) |
protected void |
processPlaceholderAttributes(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Map<String,Object> attributes) |
protected void |
processPlaceholderAttributes(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
String beanName,
Map<String,Object> attributes) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected void |
setAttribute(String name,
Object value) |
void |
setAttributes(Map<String,? extends Object> attributes) |
static void |
setAttributeValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
String property,
Object value)
Apply the given property value to the corresponding bean.
|
void |
setBeanName(String beanName) |
void |
setIgnoreInvalidKeys(boolean ignoreInvalidKeys)
Set whether to ignore invalid keys.
|
void |
setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders) |
void |
setMapValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String key,
String beanName,
String mapKey,
Object value) |
void |
setOrder(int order) |
public BeanConfigurrer()
public BeanConfigurrer(org.springframework.context.ApplicationContext applicationContext)
public static void createParameterBeanDefinition(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
Object value)
public static void setAttributeValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String beanName,
String property,
Object value)
public String getBeanName()
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic boolean isIgnoreInvalidKeys()
public boolean isIgnoreUnresolvablePlaceholders()
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionprotected void processOverride(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String key,
Object value)
protected void processOverrideAttributes(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Map<String,Object> attributes)
protected void processPlaceholderAttributes(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Map<String,Object> attributes)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionprotected void processPlaceholderAttributes(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
String beanName,
Map<String,Object> attributes)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setIgnoreInvalidKeys(boolean ignoreInvalidKeys)
If you ignore invalid keys, keys that do not follow the 'beanName.property' format will just be logged as warning. This allows to have arbitrary other keys in a properties file.
public void setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
public void setMapValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
String key,
String beanName,
String mapKey,
Object value)
public void setOrder(int order)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.