Skip to content

Commit e102de2

Browse files
committed
#13690 - feedback - add comment
1 parent 1d2cd16 commit e102de2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

grails-plugin-databinding/src/main/groovy/org/grails/plugins/databinding/DataBindingConfiguration.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public DataBindingConfiguration(DataBindingConfigurationProperties configuration
3232
this.configurationProperties = configurationProperties;
3333
}
3434

35+
/*
36+
Must be lazy initialized because plugins ValueConverters & StructuredBindingEditors may be initialized by the Grails
37+
Bean DSL instead of an AutoConfiguration. For example, DataBindingConfigurationSpec defines beans as part of the test
38+
startup and without this being Lazy it, those beans will never be wired to the GrailsWebDataBinder bean.
39+
*/
3540
@Lazy
3641
@Bean("grailsWebDataBinder")
3742
protected GrailsWebDataBinder grailsWebDataBinder(

0 commit comments

Comments
 (0)