Java 类org.springframework.core.enums.StaticLabeledEnumResolver 实例源码

项目:cacheonix-core    文件:FormController.java   
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {
    binder.registerCustomEditor(Country.class, new CountryEditor(this.userManager));
    binder.registerCustomEditor(Colour.class, new PropertyEditorSupport() {
        public void setAsText(String string) throws IllegalArgumentException {
            Short code = new Short(string);
            StaticLabeledEnumResolver resolver = new StaticLabeledEnumResolver();
            setValue(resolver.getLabeledEnumByCode(Colour.class, code));
        }
    });
}
项目:spring-rich-client    文件:DefaultApplicationServices.java   
public Object build( DefaultApplicationServices applicationServices ) {
    logger.info( "Creating default service impl: LabeledEnumResolver" );
    return new StaticLabeledEnumResolver();
}
项目:spring-richclient    文件:DefaultApplicationServices.java   
public Object build( DefaultApplicationServices applicationServices ) {
    logger.info( "Creating default service impl: LabeledEnumResolver" );
    return new StaticLabeledEnumResolver();
}