refactored binder into two parts

pull/210/head
Justin Richer 2012-08-28 12:29:33 -04:00
parent be54696603
commit 72c125ba64
1 changed files with 13 additions and 2 deletions

View File

@ -40,8 +40,12 @@ public class ClientDynamicRegistrationEndpoint {
@Autowired @Autowired
private ClientDetailsEntityService clientService; private ClientDetailsEntityService clientService;
/**
* Bind utility data types to their classes
* @param binder
*/
@InitBinder @InitBinder
public void initBinder(WebDataBinder binder) { public void utilityDataInitBinder(WebDataBinder binder) {
/* /*
* Application type * Application type
@ -144,7 +148,14 @@ public class ClientDynamicRegistrationEndpoint {
}); });
*/ */
}
/**
* Bind a space-separated string to a Set<String>
* @param binder
*/
@InitBinder({"contacts", "redirect_uris"})
public void stringSetInitbinder(WebDataBinder binder) {
/* /*
* Space-separated set of strings * Space-separated set of strings
*/ */