クラス NamespaceHandlerSupport
java.lang.ObjectSE
org.springframework.beans.factory.xml.NamespaceHandlerSupport
- 実装されたすべてのインターフェース:
NamespaceHandler
- 既知の直属サブクラス
AopNamespaceHandler
、CacheNamespaceHandler
、ContextNamespaceHandler
、JdbcNamespaceHandler
、JeeNamespaceHandler
、JmsNamespaceHandler
、LangNamespaceHandler
、MvcNamespaceHandler
、OxmNamespaceHandler
、TaskNamespaceHandler
、TxNamespaceHandler
、UtilNamespaceHandler
、WebSocketNamespaceHandler
カスタム
NamespaceHandlers
を実装するためのサポートクラス。個々の Nodes
SE の解析と装飾は、それぞれ BeanDefinitionParser
および BeanDefinitionDecorator
戦略インターフェースを介して行われます。 特定の要素を処理する BeanDefinitionParser
または BeanDefinitionDecorator
を登録するための registerBeanDefinitionParser(java.lang.String, org.springframework.beans.factory.xml.BeanDefinitionParser)
および registerBeanDefinitionDecorator(java.lang.String, org.springframework.beans.factory.xml.BeanDefinitionDecorator)
メソッドを提供します。
- 導入:
- 2.0
- 作成者:
- Rob Harrop, Juergen Hoeller
- 関連事項:
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明decorate
(NodeSE node, BeanDefinitionHolder definition, ParserContext parserContext) parse
(ElementSE element, ParserContext parserContext) protected final void
registerBeanDefinitionDecorator
(StringSE elementName, BeanDefinitionDecorator dec) サブクラスはこれを呼び出して、指定された要素を処理するために提供されたBeanDefinitionDecorator
を登録できます。protected final void
サブクラスはこれを呼び出して、指定された属性を処理するために提供されたBeanDefinitionDecorator
を登録できます。protected final void
registerBeanDefinitionParser
(StringSE elementName, BeanDefinitionParser parser) サブクラスはこれを呼び出して、指定された要素を処理するために提供されたBeanDefinitionParser
を登録できます。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.beans.factory.xml.NamespaceHandler から継承されたメソッド
init
コンストラクターの詳細
NamespaceHandlerSupport
public NamespaceHandlerSupport()
メソッドの詳細
parse
- 次で指定:
- インターフェース
NamespaceHandler
のparse
- パラメーター:
element
- 1 つ以上のBeanDefinitions
に解析される要素parserContext
- 解析プロセスの現在の状態をカプセル化するオブジェクト- 戻り値:
- プライマリ
BeanDefinition
(上で説明したようにnull
にすることができます)
decorate
@Nullable public BeanDefinitionHolder decorate(NodeSE node, BeanDefinitionHolder definition, ParserContext parserContext) - 次で指定:
- インターフェース
NamespaceHandler
のdecorate
- パラメーター:
node
- 解析されるソース要素または属性definition
- 現在の Bean 定義parserContext
- 解析プロセスの現在の状態をカプセル化するオブジェクト- 戻り値:
- 装飾された定義(BeanFactory に登録される)、または装飾が必要ない場合は単に元の Bean 定義。
null
値は厳密には無効ですが、元の Bean 定義が返される場合と同様に寛大に扱われます。
registerBeanDefinitionParser
protected final void registerBeanDefinitionParser(StringSE elementName, BeanDefinitionParser parser) サブクラスはこれを呼び出して、指定された要素を処理するために提供されたBeanDefinitionParser
を登録できます。要素名はローカル(名前空間で修飾されていない)名です。registerBeanDefinitionDecorator
protected final void registerBeanDefinitionDecorator(StringSE elementName, BeanDefinitionDecorator dec) サブクラスはこれを呼び出して、指定された要素を処理するために提供されたBeanDefinitionDecorator
を登録できます。要素名はローカル(名前空間で修飾されていない)名です。registerBeanDefinitionDecoratorForAttribute
protected final void registerBeanDefinitionDecoratorForAttribute(StringSE attrName, BeanDefinitionDecorator dec) サブクラスはこれを呼び出して、指定された属性を処理するために提供されたBeanDefinitionDecorator
を登録できます。属性名はローカル(非名前空間修飾)名です。