@Service
public class AccountService
{
private final UserRepository repository;
private final MessageByLocaleService messageByLocaleService;
private final Validator validator;
@Autowired
public AccountService(UserRepository repository, MessageByLocaleService messageByLocaleService, Validator validator)
{
this.repository = repository;
this.messageByLocaleService = messageByLocaleService;
this.validator = validator;
}