public class BeanDefinitionVisitor extends ObjectSE
BeanDefinition
オブジェクト、特にそれらに含まれるプロパティ値とコンストラクター引数値をトラバースし、Bean メタデータ値を解決するための訪問者クラス。PropertyPlaceholderConfigurer
によって使用され、BeanDefinition に含まれるすべての文字列値を解析して、見つかったプレースホルダーを解決します。
BeanDefinition
, BeanDefinition.getPropertyValues()
, BeanDefinition.getConstructorArgumentValues()
, PropertyPlaceholderConfigurer
修飾子 | コンストラクターと説明 |
---|---|
protected | BeanDefinitionVisitor() サブクラス化用に新しい BeanDefinitionVisitor を作成します。 |
| BeanDefinitionVisitor(StringValueResolver valueResolver) 指定された値リゾルバーをすべての Bean メタデータ値に適用して、新しい BeanDefinitionVisitor を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected StringSE | resolveStringValue(StringSE strVal) プレースホルダーの解析など、指定された文字列値を解決します。 |
protected ObjectSE | resolveValue(ObjectSE value) |
protected void | visitArray(ObjectSE[] arrayVal) |
protected void | visitBeanClassName(BeanDefinition beanDefinition) |
void | visitBeanDefinition(BeanDefinition beanDefinition) 指定された BeanDefinition オブジェクトと、それらに含まれる MutablePropertyValues および ConstructorArgumentValues をトラバースします。 |
protected void | visitFactoryBeanName(BeanDefinition beanDefinition) |
protected void | visitFactoryMethodName(BeanDefinition beanDefinition) |
protected void | visitGenericArgumentValues(ListSE<ConstructorArgumentValues.ValueHolder> gas) |
protected void | visitIndexedArgumentValues(MapSE<IntegerSE, ConstructorArgumentValues.ValueHolder> ias) |
protected void | visitList(ListSE listVal) |
protected void | visitMap(MapSE<?,?> mapVal) |
protected void | visitParentName(BeanDefinition beanDefinition) |
protected void | visitPropertyValues(MutablePropertyValues pvs) |
protected void | visitScope(BeanDefinition beanDefinition) |
protected void | visitSet(SetSE setVal) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public BeanDefinitionVisitor(StringValueResolver valueResolver)
valueResolver
- 適用する StringValueResolverprotected BeanDefinitionVisitor()
resolveStringValue(java.lang.String)
メソッドをオーバーライドする必要があります。public void visitBeanDefinition(BeanDefinition beanDefinition)
beanDefinition
- トラバースする BeanDefinition オブジェクト resolveStringValue(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(MapSE<IntegerSE,ConstructorArgumentValues.ValueHolder> ias)
protected void visitGenericArgumentValues(ListSE<ConstructorArgumentValues.ValueHolder> gas)
protected void visitArray(ObjectSE[] arrayVal)
protected void visitList(ListSE listVal)
protected void visitSet(SetSE setVal)
protected void visitMap(MapSE<?,?> mapVal)