Search in sources :

Example 1 with StringPropertyEditorSupport

use of hry.core.util.springmvcPropertyeditor.StringPropertyEditorSupport in project benchmark by seelunzi.

the class TestController method initBinder.

/*    */
/*    */
@InitBinder
public /*    */
void initBinder(ServletRequestDataBinder binder) /*    */
{
    /* 37 */
    binder.registerCustomEditor(Date.class, new DateTimePropertyEditorSupport());
    /*    */
    /*    */
    /*    */
    /*    */
    /* 42 */
    binder.registerCustomEditor(String.class, new StringPropertyEditorSupport(true, false));
/*    */
}
Also used : DateTimePropertyEditorSupport(hry.core.util.springmvcPropertyeditor.DateTimePropertyEditorSupport) StringPropertyEditorSupport(hry.core.util.springmvcPropertyeditor.StringPropertyEditorSupport) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Aggregations

DateTimePropertyEditorSupport (hry.core.util.springmvcPropertyeditor.DateTimePropertyEditorSupport)1 StringPropertyEditorSupport (hry.core.util.springmvcPropertyeditor.StringPropertyEditorSupport)1 InitBinder (org.springframework.web.bind.annotation.InitBinder)1