public PropertyEditorRegistry getPropertyEditorRegistry ( ) { final HttpServletRequest servletRequest = getCurrentRequest ( ) ; PropertyEditorRegistry registry = ( PropertyEditorRegistry ) servletRequest . getAttribute ( GrailsApplicationAttributes . PROPERTY_REGISTRY ) ; if ( registry == null ) { registry = new PropertyEditorRegistrySupport ( ) ; PropertyEditorRegistryUtils . registerCustomEditors ( this , registry , RequestContextUtils . getLocale ( servletRequest ) ) ; servletRequest . setAttribute ( GrailsApplicationAttributes . PROPERTY_REGISTRY , registry ) ; } return registry ; }
Obtains the PropertyEditorRegistry instance .