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

BeanDefinitionVisitor (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

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, in particular the property values and constructor argument values contained in them.

The abstract resolveStringValue(java.lang.String) 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)
           
protected  void visitBeanClassName(BeanDefinition beanDefinition)
           
 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 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

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)

visitBeanClassName

protected void visitBeanClassName(BeanDefinition beanDefinition)

visitScope

protected void visitScope(BeanDefinition beanDefinition)

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

The Spring Framework

Copyright © 2002-2007 The Spring Framework.