public class BeanDefinitionVisitor
extends java.lang.Object
BeanDefinition
objects, in particular
the property values and constructor argument values contained in them,
resolving bean metadata values.
Used by PropertyPlaceholderConfigurer
to parse all String values
contained in a BeanDefinition, resolving any placeholders found.
BeanDefinition
,
BeanDefinition.getPropertyValues()
,
BeanDefinition.getConstructorArgumentValues()
,
PropertyPlaceholderConfigurer
Modifier | Constructor and Description |
---|---|
protected |
BeanDefinitionVisitor()
Create a new BeanDefinitionVisitor for subclassing.
|
|
BeanDefinitionVisitor(StringValueResolver valueResolver)
Create a new BeanDefinitionVisitor, applying the specified
value resolver to all bean metadata values.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
resolveStringValue(java.lang.String strVal)
Resolve the given String value, for example parsing placeholders.
|
protected java.lang.Object |
resolveValue(java.lang.Object value) |
protected void |
visitArray(java.lang.Object[] arrayVal) |
protected void |
visitBeanClassName(BeanDefinition beanDefinition) |
void |
visitBeanDefinition(BeanDefinition beanDefinition)
Traverse the given BeanDefinition object and the MutablePropertyValues
and ConstructorArgumentValues contained in them.
|
protected void |
visitFactoryBeanName(BeanDefinition beanDefinition) |
protected void |
visitFactoryMethodName(BeanDefinition beanDefinition) |
protected void |
visitGenericArgumentValues(java.util.List<ConstructorArgumentValues.ValueHolder> gas) |
protected void |
visitIndexedArgumentValues(java.util.Map<java.lang.Integer,ConstructorArgumentValues.ValueHolder> ias) |
protected void |
visitList(java.util.List listVal) |
protected void |
visitMap(java.util.Map<?,?> mapVal) |
protected void |
visitParentName(BeanDefinition beanDefinition) |
protected void |
visitPropertyValues(MutablePropertyValues pvs) |
protected void |
visitScope(BeanDefinition beanDefinition) |
protected void |
visitSet(java.util.Set setVal) |
public BeanDefinitionVisitor(StringValueResolver valueResolver)
valueResolver
- the StringValueResolver to applyprotected BeanDefinitionVisitor()
resolveStringValue(java.lang.String)
method.public void visitBeanDefinition(BeanDefinition beanDefinition)
beanDefinition
- the BeanDefinition object to traverseresolveStringValue(String)
protected void visitParentName(BeanDefinition beanDefinition)
protected void visitBeanClassName(BeanDefinition beanDefinition)
protected void visitFactoryBeanName(BeanDefinition beanDefinition)
protected void visitFactoryMethodName(BeanDefinition beanDefinition)
protected void visitScope(BeanDefinition beanDefinition)
protected void visitPropertyValues(MutablePropertyValues pvs)
protected void visitIndexedArgumentValues(java.util.Map<java.lang.Integer,ConstructorArgumentValues.ValueHolder> ias)
protected void visitGenericArgumentValues(java.util.List<ConstructorArgumentValues.ValueHolder> gas)
protected java.lang.Object resolveValue(java.lang.Object value)
protected void visitArray(java.lang.Object[] arrayVal)
protected void visitList(java.util.List listVal)
protected void visitSet(java.util.Set setVal)
protected void visitMap(java.util.Map<?,?> mapVal)
protected java.lang.String resolveStringValue(java.lang.String strVal)
strVal
- the original String value