|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.config.BeanDefinitionVisitor
public abstract class BeanDefinitionVisitor
Visitor base class for traversing BeanDefinition objects and the MutablePropertyValues and ConstructorArgumentValues contained in them.
The abstract resolveStringValue
method has to be implemented
in concrete subclasses, following arbitrary resolution strategies.
Used by PropertyPlaceholderConfigurer to parse all String values contained in a BeanDefinition, resolving any placeholders found.
BeanDefinition
,
BeanDefinition.getPropertyValues()
,
BeanDefinition.getConstructorArgumentValues()
,
resolveStringValue(String)
,
PropertyPlaceholderConfigurer
Constructor Summary | |
---|---|
BeanDefinitionVisitor()
|
Method Summary | |
---|---|
protected abstract String |
resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders. |
protected Object |
resolveValue(Object value)
|
void |
visitBeanDefinition(BeanDefinition beanDefinition)
Traverse the given BeanDefinition object and the MutablePropertyValues and ConstructorArgumentValues contained in them. |
protected void |
visitGenericArgumentValues(List gas)
|
protected void |
visitIndexedArgumentValues(Map ias)
|
protected void |
visitList(List listVal)
|
protected void |
visitMap(Map mapVal)
|
protected void |
visitPropertyValues(MutablePropertyValues pvs)
|
protected void |
visitSet(Set setVal)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanDefinitionVisitor()
Method Detail |
---|
public void visitBeanDefinition(BeanDefinition beanDefinition)
beanDefinition
- the BeanDefinition object to traverseresolveStringValue(String)
protected void visitPropertyValues(MutablePropertyValues pvs)
protected void visitIndexedArgumentValues(Map ias)
protected void visitGenericArgumentValues(List gas)
protected Object resolveValue(Object value)
protected void visitList(List listVal)
protected void visitSet(Set setVal)
protected void visitMap(Map mapVal)
protected abstract String resolveStringValue(String strVal)
strVal
- the original String value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |