|
|||||||||
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 class BeanDefinitionVisitor
Visitor class for traversing 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
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected String |
resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders. |
protected Object |
resolveValue(Object value)
|
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(List<ConstructorArgumentValues.ValueHolder> gas)
|
protected void |
visitIndexedArgumentValues(Map<Integer,ConstructorArgumentValues.ValueHolder> ias)
|
protected void |
visitList(List listVal)
|
protected void |
visitMap(Map<?,?> mapVal)
|
protected void |
visitParentName(BeanDefinition beanDefinition)
|
protected void |
visitPropertyValues(MutablePropertyValues pvs)
|
protected void |
visitScope(BeanDefinition beanDefinition)
|
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(StringValueResolver valueResolver)
valueResolver
- the StringValueResolver to applyprotected BeanDefinitionVisitor()
resolveStringValue(java.lang.String)
method.
Method Detail |
---|
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(Map<Integer,ConstructorArgumentValues.ValueHolder> ias)
protected void visitGenericArgumentValues(List<ConstructorArgumentValues.ValueHolder> gas)
protected Object resolveValue(Object value)
protected void visitList(List listVal)
protected void visitSet(Set setVal)
protected void visitMap(Map<?,?> mapVal)
protected 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 |