spring-framework / org.springframework.beans.factory.config / CustomEditorConfigurer / setPropertyEditorRegistrars

setPropertyEditorRegistrars

open fun setPropertyEditorRegistrars(propertyEditorRegistrars: Array<PropertyEditorRegistrar>): Unit

Specify the PropertyEditorRegistrar to apply to beans defined within the current application context.

This allows for sharing PropertyEditorRegistrars with org.springframework.validation.DataBinder, etc. Furthermore, it avoids the need for synchronization on custom editors: A PropertyEditorRegistrar will always create fresh editor instances for each bean creation attempt.

See Also
ConfigurableListableBeanFactory#addPropertyEditorRegistrar