public static void setRegisterWithVM ( final boolean registerWithVM ) { if ( Converters . registerWithVM != registerWithVM ) { Converters . registerWithVM = registerWithVM ; // register all converters with the VM if ( registerWithVM ) { for ( Entry < Class , Converter > entry : REGISTRY . entrySet ( ) ) { Class type = entry . getKey ( ) ; Converter converter = entry . getValue ( ) ; PropertyEditorManager . registerEditor ( type , converter . getClass ( ) ) ; } } } }
Sets if converters registered with the VM PropertyEditorManager . If the new value is true all currently registered converters are immediately registered with the VM .