|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.reactive.beans.factory.config.ConfigurationPlaceholderProcessor
public class ConfigurationPlaceholderProcessor
Allows for configuration of individual bean property values from a configuration resource.
Note: This class is based heavily on the org.springframework.beans.factory.config.PropertyPlaceholderConfigurer by Juergen Hoeller
Field Summary | |
---|---|
protected PlaceholderEvaluator |
placeholderEvaluator
Used to evaluate placeholders with their actual values |
protected PlaceholderMatcher |
placeholderMatcher
Used to determine if the value from the bean factory requires evaluation. |
Constructor Summary | |
---|---|
ConfigurationPlaceholderProcessor()
|
Method Summary | |
---|---|
org.springframework.beans.factory.BeanFactory |
getBeanFactory()
|
java.lang.String |
getBeanName()
|
int |
getOrder()
|
PlaceholderEvaluator |
getPlaceholderEvaluator()
Returns the implementation of PlaceholderEvaluator used to evaluate placeholder values. |
PlaceholderMatcher |
getPlaceholderMatcher()
Returns the implementation of PlaceholderMatcher used to determine if a value requires evalutation. |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory)
Processes the bean definitions available in the provided ConfigurableListableBeanFactory. |
protected void |
processBeanDefinition(org.springframework.beans.factory.config.BeanDefinition beanDefinition)
Process a single bean definition, processing the property values, indexed argument and generic argument contrsuctor values if there are any. |
protected void |
processConstructorArgumentValues(java.util.Collection genericArgumentValues)
Process the constructor argument values. |
protected void |
processList(java.util.List listValue)
Parse the given List, resolving its values if necessary. |
protected void |
processMap(java.util.Map mapValue)
Parse the given Map, resolving its values if necessary. |
protected void |
processPropertyValues(org.springframework.beans.MutablePropertyValues mutablePropertyValues)
Process the property values. |
protected void |
processSet(java.util.Set setValue)
Parse the given Set, resolving its values if necessary. |
protected java.lang.Object |
processString(java.lang.String value)
This is the root of all parsing. |
protected java.lang.Object |
processValue(java.lang.Object value)
Parses the value by delegating to a more appropriate parse method. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setBeanName(java.lang.String beanName)
|
void |
setOrder(int order)
|
void |
setPlaceholderEvaluator(PlaceholderEvaluator placeholderEvaluator)
Sets the implementation of PlaceholderEvaluator used to evaluate placeholder values. |
void |
setPlaceholderMatcher(PlaceholderMatcher placeholderMatcher)
Sets the implementation of PlaceholderMatcher used to determine if a value requires evalutation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PlaceholderEvaluator placeholderEvaluator
protected PlaceholderMatcher placeholderMatcher
DefaultPlaceholderMatcher
is used.
Constructor Detail |
---|
public ConfigurationPlaceholderProcessor()
Method Detail |
---|
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
public java.lang.String getBeanName()
public void setBeanName(java.lang.String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public org.springframework.beans.factory.BeanFactory getBeanFactory()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public PlaceholderEvaluator getPlaceholderEvaluator()
PlaceholderEvaluator
used to evaluate placeholder values.
public void setPlaceholderEvaluator(PlaceholderEvaluator placeholderEvaluator)
PlaceholderEvaluator
used to evaluate placeholder values.
placeholderEvaluator
- The place holder eveluatorpublic PlaceholderMatcher getPlaceholderMatcher()
PlaceholderMatcher
used to determine if a value requires evalutation.
public void setPlaceholderMatcher(PlaceholderMatcher placeholderMatcher)
PlaceholderMatcher
used to determine if a value requires evalutation.
placeholderEvaluator
- The place holder matcherpublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) throws org.springframework.beans.BeansException
This method ensures it does not process itself or other bean factories.
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
configurableListableBeanFactory
- The bean factory to process.
org.springframework.beans.BeansException
- If an error occurrs while processing a bean definitionprotected void processBeanDefinition(org.springframework.beans.factory.config.BeanDefinition beanDefinition)
beanDefinition
- The bean definition to be processedprotected void processPropertyValues(org.springframework.beans.MutablePropertyValues mutablePropertyValues)
mutablePropertyValues
- The mutable property valuesprotected void processConstructorArgumentValues(java.util.Collection genericArgumentValues)
genericArgumentValues
- the constructor argument valuesprotected java.lang.Object processValue(java.lang.Object value)
value
- The value to be parsed
protected java.lang.Object processString(java.lang.String value)
placeholder matcher
confirms that value needs evaluating, we look up the
value using the evaluator
and return the matching object.
value
- The value to the evaluated
protected void processList(java.util.List listValue)
listValue
- The list to be evaluatedprotected void processSet(java.util.Set setValue)
setValue
- The set to be evaluatedprotected void processMap(java.util.Map mapValue)
mapValue
- The map to be evaluated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |