@Component(value="userValidator") public class UserValidator extends Object implements org.springframework.validation.Validator
UserValidator class.
Constructor and Description |
---|
UserValidator() |
Modifier and Type | Method and Description |
---|---|
void |
setUserService(UserService userService)
Setter for the field
userService . |
boolean |
supports(Class clazz) |
void |
validate(Object command,
org.springframework.validation.Errors err) |
public boolean supports(Class clazz)
supports
in interface org.springframework.validation.Validator
public void validate(Object command, org.springframework.validation.Errors err)
validate
in interface org.springframework.validation.Validator
@Autowired public void setUserService(UserService userService)
Setter for the field userService
.
userService
- a UserService
object.Copyright © 2015. All Rights Reserved.