站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

BeanDefinitionVisitor (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.beans.factory.config
Class BeanDefinitionVisitor

java.lang.Object
  extended by org.springframework.beans.factory.config.BeanDefinitionVisitor

public abstract class BeanDefinitionVisitor
extends Object

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.

Since:
1.2
Author:
Juergen Hoeller
See Also:
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

BeanDefinitionVisitor

public BeanDefinitionVisitor()
Method Detail

visitBeanDefinition

public void visitBeanDefinition(BeanDefinition beanDefinition)
Traverse the given BeanDefinition object and the MutablePropertyValues and ConstructorArgumentValues contained in them.

Parameters:
beanDefinition - the BeanDefinition object to traverse
See Also:
resolveStringValue(String)

visitPropertyValues

protected void visitPropertyValues(MutablePropertyValues pvs)

visitIndexedArgumentValues

protected void visitIndexedArgumentValues(Map ias)

visitGenericArgumentValues

protected void visitGenericArgumentValues(List gas)

resolveValue

protected Object resolveValue(Object value)

visitList

protected void visitList(List listVal)

visitSet

protected void visitSet(Set setVal)

visitMap

protected void visitMap(Map mapVal)

resolveStringValue

protected abstract String resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders.

Parameters:
strVal - the original String value
Returns:
the resolved String value


Copyright (c) 2002-2007 The Spring Framework Project.