public class DefaultPropertyEditorRegistrar
extends java.lang.Object
implements org.springframework.beans.PropertyEditorRegistrar
PropertyEditor
インスタンスを PropertyEditorRegistry
(Bean ラッパーや型コンバーターなど)に登録する必要がある場合に使用できる、再利用可能な PropertyEditorRegistrar
。スレッドセーフではありませんが、バインディングまたは初期化がシングルスレッドのみであると確信している場合に役立ちます(たとえば、スレッドのないスタンドアロンアプリケーションの場合)。コンストラクターと説明 |
---|
DefaultPropertyEditorRegistrar() |
修飾子と型 | メソッドと説明 |
---|---|
void | registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry) 指定されたレジストリにカスタムエディターを登録します。 |
void | setCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors) 登録する custom editors を指定します。 |
public void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
org.springframework.beans.PropertyEditorRegistrar
の registerCustomEditors
PropertyEditorRegistrar.registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)
public void setCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors)
custom editors
を指定します。customEditors
- クラスの PropertyEditor へのマップ(またはクラス名から PropertyEditor へ)。CustomEditorConfigurer.setCustomEditors(Map)